From: Jules Irenge <jbi.octave@gmail.com>
To: trond.myklebust@hammerspace.com
Cc: anna.schumaker@netapp.com, davem@davemloft.net,
linux-nfs@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, Jules Irenge <jbi.octave@gmail.com>
Subject: [PATCH] net: sunrpc: replace 0 with NULL
Date: Mon, 25 Nov 2019 22:52:39 +0000 [thread overview]
Message-ID: <20191125225239.384343-1-jbi.octave@gmail.com> (raw)
Replace 0 with NULL to fix warning detected by sparse tool.
warning: 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..74d4ca06d572 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 = { NULL };
size_t want, read = 0;
ssize_t ret = 0;
--
2.23.0
next reply other threads:[~2019-11-25 22:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-25 22:52 Jules Irenge [this message]
2019-11-26 16:38 ` [PATCH] net: sunrpc: replace 0 with NULL Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191125225239.384343-1-jbi.octave@gmail.com \
--to=jbi.octave@gmail.com \
--cc=anna.schumaker@netapp.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=trond.myklebust@hammerspace.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.