[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20191126222936.172873-1-jbi.octave@gmail.com>
Date: Tue, 26 Nov 2019 22:29:36 +0000
From: Jules Irenge <jbi.octave@...il.com>
To: bfields@...ldses.org
Cc: joe@...ches.com, chuck.lever@...cle.com,
trond.myklebust@...merspace.com, anna.schumaker@...app.com,
davem@...emloft.net, linux-nfs@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Jules Irenge <jbi.octave@...il.com>
Subject: [PATCH] net: sunrpc: remove 0
Remove 0 to fix warning detected by sparse tool.
Using plain integer as NULL pointer.
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
net/sunrpc/xprtsock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 70e52f567b2a..f90323dfc548 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -614,7 +614,7 @@ xs_read_stream_reply(struct sock_xprt *transport, struct msghdr *msg, int flags)
static ssize_t
xs_read_stream(struct sock_xprt *transport, int flags)
{
- struct msghdr msg = { 0 };
+ struct msghdr msg = {};
size_t want, read = 0;
ssize_t ret = 0;
--
2.23.0
Powered by blists - more mailing lists