summaryrefslogtreecommitdiffstats
path: root/init/do_mounts_rd.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-04-28 14:13:14 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 17:29:18 -0700
commitd613c3e2d841889f32b1e74f251a6a6bcd9642cf (patch)
treee55c8975de55b35c79aa0a91f2f18b9768fe41d7 /init/do_mounts_rd.c
parent9d04d9280c4bbf6950b70b705bc4ace41de65615 (diff)
downloadlinux-d613c3e2d841889f32b1e74f251a6a6bcd9642cf.tar.gz
linux-d613c3e2d841889f32b1e74f251a6a6bcd9642cf.tar.bz2
linux-d613c3e2d841889f32b1e74f251a6a6bcd9642cf.zip
init: fix integer as NULL pointer warnings
init/do_mounts_rd.c:215:13: warning: Using plain integer as NULL pointer init/do_mounts_md.c:136:45: warning: Using plain integer as NULL pointer Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/do_mounts_rd.c')
-rw-r--r--init/do_mounts_rd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c
index 3ac5904d1b12..46dfd64ae8fb 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;
}