diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2020-01-01 10:43:30 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2020-01-15 18:54:31 +0300 |
commit | c2bd2c0a55dd36c16b25a8fd93aa1053b576b72c (patch) | |
tree | 6c23baecfc070fd652a47c4f1bc3ee59d6272dc3 /net/sunrpc/xdr.c | |
parent | bd89bc67f64fa23846645ce8b1c3cb51efebab32 (diff) | |
download | linux-c2bd2c0a55dd36c16b25a8fd93aa1053b576b72c.tar.xz |
SUNRPC: constify copied structure
The empty_iov structure is only copied into another structure,
so make it const.
The opportunity for this change was found using Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xdr.c')
-rw-r--r-- | net/sunrpc/xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c index f3104be8ff5d..e5497dc2475b 100644 --- a/net/sunrpc/xdr.c +++ b/net/sunrpc/xdr.c @@ -1079,7 +1079,7 @@ void xdr_enter_page(struct xdr_stream *xdr, unsigned int len) } EXPORT_SYMBOL_GPL(xdr_enter_page); -static struct kvec empty_iov = {.iov_base = NULL, .iov_len = 0}; +static const struct kvec empty_iov = {.iov_base = NULL, .iov_len = 0}; void xdr_buf_from_iov(struct kvec *iov, struct xdr_buf *buf) |