staging: gs_fpgaboot: remove unnecessary 'out of memory' message
authorEbru Akagunduz <ebru.akagunduz@gmail.com>
Fri, 3 Oct 2014 10:23:00 +0000 (13:23 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:12 +0000 (10:29 +0800)
This patch fixes "Possible unnecessary 'out of memory' message"
checkpatch.pl warning in gs_fpgaboot.c

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gs_fpgaboot/gs_fpgaboot.c

index 6aa9d7c3013908d5a454479ab08d7e53457a7446..1875bd3b823fd83ec2125be2d1d88b301589689b 100644 (file)
@@ -316,10 +316,8 @@ static int gs_fpgaboot(void)
        struct fpgaimage        *fimage;
 
        fimage = kmalloc(sizeof(struct fpgaimage), GFP_KERNEL);
-       if (fimage == NULL) {
-               pr_err("No memory is available\n");
+       if (fimage == NULL)
                goto err_out;
-       }
 
        err = gs_load_image(fimage, file);
        if (err) {