diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-28 23:13:14 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 02:29:18 +0200 |
commit | d613c3e2d841889f32b1e74f251a6a6bcd9642cf (patch) | |
tree | e55c8975de55b35c79aa0a91f2f18b9768fe41d7 /init | |
parent | ptrace: conditionalize compat_ptrace_request (diff) | |
download | linux-d613c3e2d841889f32b1e74f251a6a6bcd9642cf.tar.xz 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')
-rw-r--r-- | init/do_mounts_md.c | 2 | ||||
-rw-r--r-- | init/do_mounts_rd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/init/do_mounts_md.c b/init/do_mounts_md.c index 753dc54a6649..7473b0c59d4d 100644 --- a/init/do_mounts_md.c +++ b/init/do_mounts_md.c @@ -133,7 +133,7 @@ static void __init md_setup_drive(void) else dev = MKDEV(MD_MAJOR, minor); create_dev(name, dev); - for (i = 0; i < MD_SB_DISKS && devname != 0; i++) { + for (i = 0; i < MD_SB_DISKS && devname != NULL; i++) { char *p; char comp_name[64]; u32 rdev; 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; } |