1 From d94a907d76d529f82da11b68d79861bc866970f0 Mon Sep 17 00:00:00 2001
2 From: YueHaibing <yuehaibing@huawei.com>
3 Date: Thu, 8 Nov 2018 02:04:57 +0000
4 Subject: SUNRPC: drop pointless static qualifier in
5 xdr_get_next_encode_buffer()
7 [ Upstream commit 025911a5f4e36955498ed50806ad1b02f0f76288 ]
9 There is no need to have the '__be32 *p' variable static since new value
10 always be assigned before use it.
12 Signed-off-by: YueHaibing <yuehaibing@huawei.com>
13 Cc: stable@vger.kernel.org
14 Signed-off-by: J. Bruce Fields <bfields@redhat.com>
15 Signed-off-by: Sasha Levin <sashal@kernel.org>
17 net/sunrpc/xdr.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c
21 index 6de975ae7f5b..3cdd34d2a9fc 100644
22 --- a/net/sunrpc/xdr.c
23 +++ b/net/sunrpc/xdr.c
24 @@ -512,7 +512,7 @@ EXPORT_SYMBOL_GPL(xdr_commit_encode);
25 static __be32 *xdr_get_next_encode_buffer(struct xdr_stream *xdr,
31 int frag1bytes, frag2bytes;