* [PATCH] - [13/15] - remove defconfig ptr comparisons to 0 - init
@ 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/init/do_mounts_rd.c b/init/do_mounts_rd.c
index 3ac5904..46dfd64 100644
--- a/init/do_mounts_rd.c
+++ b/init/do_mounts_rd.c
@@ -212,7 +212,7 @@ int __init rd_load_image(char *from)
}
buf = kmalloc(BLOCK_SIZE, GFP_KERNEL);
- if (buf == 0) {
+ if (!buf) {
printk(KERN_ERR "RAMDISK: could not allocate buffer\n");
goto done;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-14 2:09 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] - [13/15] - remove defconfig ptr comparisons to 0 - init Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox