]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - 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
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()
6
7 [ Upstream commit 025911a5f4e36955498ed50806ad1b02f0f76288 ]
8
9 There is no need to have the '__be32 *p' variable static since new value
10 always be assigned before use it.
11
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>
16 ---
17 net/sunrpc/xdr.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
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,
26 size_t nbytes)
27 {
28 - static __be32 *p;
29 + __be32 *p;
30 int space_left;
31 int frag1bytes, frag2bytes;
32
33 --
34 2.17.1
35