LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] - [11/15] - remove defconfig ptr comparisons to 0 - fs/smbfs
@ 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

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/fs/smbfs/smbiod.c b/fs/smbfs/smbiod.c
index 283c572..fa3b249 100644
--- a/fs/smbfs/smbiod.c
+++ b/fs/smbfs/smbiod.c
@@ -206,7 +206,7 @@ int smbiod_retry(struct smb_sb_info *server)
 
 	smb_close_socket(server);
 
-	if (pid == 0) {
+	if (!pid) {
 		/* FIXME: this is fatal, umount? */
 		printk(KERN_ERR "smb_retry: no connection process\n");
 		server->state = CONN_RETRIED;



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

only message in thread, other threads:[~2007-11-14  2:08 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] - [11/15] - remove defconfig ptr comparisons to 0 - fs/smbfs 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).