diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-11-08 02:04:57 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-27 16:09:40 +0100 |
commit | a38ad671d1cafda6f6c4f8fbade9b831cfdbda75 (patch) | |
tree | 287f1de8e14d1476ccd0db71799563a2cbbd00a6 | |
parent | 553a56136333203a6d9f8cadb5e27cdfc3306650 (diff) | |
download | linux-stable-a38ad671d1cafda6f6c4f8fbade9b831cfdbda75.tar.gz linux-stable-a38ad671d1cafda6f6c4f8fbade9b831cfdbda75.tar.bz2 linux-stable-a38ad671d1cafda6f6c4f8fbade9b831cfdbda75.zip |
SUNRPC: drop pointless static qualifier in xdr_get_next_encode_buffer()
[ Upstream commit 025911a5f4e36955498ed50806ad1b02f0f76288 ]
There is no need to have the '__be32 *p' variable static since new value
always be assigned before use it.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-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 1b38fc486351..69846c6574ef 100644 --- a/net/sunrpc/xdr.c +++ b/net/sunrpc/xdr.c @@ -512,7 +512,7 @@ EXPORT_SYMBOL_GPL(xdr_commit_encode); static __be32 *xdr_get_next_encode_buffer(struct xdr_stream *xdr, size_t nbytes) { - static __be32 *p; + __be32 *p; int space_left; int frag1bytes, frag2bytes; |