linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: sunrpc: remove 0
@ 2019-11-26 22:29 Jules Irenge
  0 siblings, 0 replies; only message in thread
From: Jules Irenge @ 2019-11-26 22:29 UTC (permalink / raw)
  To: bfields
  Cc: joe, chuck.lever, trond.myklebust, anna.schumaker, davem,
	linux-nfs, netdev, linux-kernel, Jules Irenge

Remove 0 to fix warning detected  by sparse tool.
Using plain integer as NULL pointer.

Signed-off-by: Jules Irenge <jbi.octave@gmail.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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-26 22:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 22:29 [PATCH] net: sunrpc: remove 0 Jules Irenge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).