]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.18.127/sunrpc-drop-pointless-static-qualifier-in-xdr_get_ne.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.18.127 / sunrpc-drop-pointless-static-qualifier-in-xdr_get_ne.patch
CommitLineData
13c0e91b
SL
1From d94a907d76d529f82da11b68d79861bc866970f0 Mon Sep 17 00:00:00 2001
2From: YueHaibing <yuehaibing@huawei.com>
3Date: Thu, 8 Nov 2018 02:04:57 +0000
4Subject: SUNRPC: drop pointless static qualifier in
5 xdr_get_next_encode_buffer()
6
7[ Upstream commit 025911a5f4e36955498ed50806ad1b02f0f76288 ]
8
9There is no need to have the '__be32 *p' variable static since new value
10always be assigned before use it.
11
12Signed-off-by: YueHaibing <yuehaibing@huawei.com>
13Cc: stable@vger.kernel.org
14Signed-off-by: J. Bruce Fields <bfields@redhat.com>
15Signed-off-by: Sasha Levin <sashal@kernel.org>
16---
17 net/sunrpc/xdr.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c
21index 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,
26 size_t nbytes)
27 {
28- static __be32 *p;
29+ __be32 *p;
30 int space_left;
31 int frag1bytes, frag2bytes;
32
33--
342.17.1
35