LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] - [15/15] - remove defconfig ptr comparisons to 0 - net/sunrpc
@ 2007-11-14  2:05 Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2007-11-14  2:05 UTC (permalink / raw)
  To: linux-kernel
  Cc: Linus Torvalds, J. Bruce Fields, Neil Brown, Networking Team,
	Trond Myklebust, nfs

Remove defconfig ptr comparison to 0

Remove sparse warning: Using plain integer as NULL pointer

Signed-off-by: Joe Perches <joe@perches.com>

---

diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 76be83e..1600df2 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -157,7 +157,7 @@ static struct rpc_clnt * rpc_new_client(struct rpc_xprt *xprt, char *servname, s
 	clnt->cl_server = clnt->cl_inline_name;
 	if (len > sizeof(clnt->cl_inline_name)) {
 		char *buf = kmalloc(len, GFP_KERNEL);
-		if (buf != 0)
+		if (buf)
 			clnt->cl_server = buf;
 		else
 			len = sizeof(clnt->cl_inline_name);



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

only message in thread, other threads:[~2007-11-14  2:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-14  2:05 [PATCH] - [15/15] - remove defconfig ptr comparisons to 0 - net/sunrpc Joe Perches

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).