aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/do_mounts_md.c2
-rw-r--r--init/do_mounts_rd.c2
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)
133 else 133 else
134 dev = MKDEV(MD_MAJOR, minor); 134 dev = MKDEV(MD_MAJOR, minor);
135 create_dev(name, dev); 135 create_dev(name, dev);
136 for (i = 0; i < MD_SB_DISKS && devname != 0; i++) { 136 for (i = 0; i < MD_SB_DISKS && devname != NULL; i++) {
137 char *p; 137 char *p;
138 char comp_name[64]; 138 char comp_name[64];
139 u32 rdev; 139 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)
212 } 212 }
213 213
214 buf = kmalloc(BLOCK_SIZE, GFP_KERNEL); 214 buf = kmalloc(BLOCK_SIZE, GFP_KERNEL);
215 if (buf == 0) { 215 if (!buf) {
216 printk(KERN_ERR "RAMDISK: could not allocate buffer\n"); 216 printk(KERN_ERR "RAMDISK: could not allocate buffer\n");
217 goto done; 217 goto done;
218 } 218 }