X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=init%2Fdo_mounts_rd.c;h=3ac5904d1b124c1584b0308b0c42712d9a86cc20;hb=1a510089849ff9f70b654659bf976a6baf3a4833;hp=ed652f40f075a68e2b41b68911a97a0f5224ed96;hpb=501b7c77de3e90519e95fd99e923bf9a29cd120d;p=sfrench%2Fcifs-2.6.git diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c index ed652f40f075..3ac5904d1b12 100644 --- a/init/do_mounts_rd.c +++ b/init/do_mounts_rd.c @@ -57,7 +57,7 @@ identify_ramdisk_image(int fd, int start_block) unsigned char *buf; buf = kmalloc(size, GFP_KERNEL); - if (buf == 0) + if (!buf) return -1; minixsb = (struct minix_super_block *) buf; @@ -407,12 +407,12 @@ static int __init crd_load(int in_fd, int out_fd) crd_infd = in_fd; crd_outfd = out_fd; inbuf = kmalloc(INBUFSIZ, GFP_KERNEL); - if (inbuf == 0) { + if (!inbuf) { printk(KERN_ERR "RAMDISK: Couldn't allocate gzip buffer\n"); return -1; } window = kmalloc(WSIZE, GFP_KERNEL); - if (window == 0) { + if (!window) { printk(KERN_ERR "RAMDISK: Couldn't allocate gzip window\n"); kfree(inbuf); return -1;