From: Ebru Akagunduz Date: Fri, 3 Oct 2014 10:23:00 +0000 (+0300) Subject: staging: gs_fpgaboot: remove unnecessary 'out of memory' message X-Git-Tag: v4.14-rc1~6283^2~1259 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44396c7bce449eb6bcb862c6336f5da9ff44c867;p=platform%2Fkernel%2Flinux-rpi.git staging: gs_fpgaboot: remove unnecessary 'out of memory' message This patch fixes "Possible unnecessary 'out of memory' message" checkpatch.pl warning in gs_fpgaboot.c Signed-off-by: Ebru Akagunduz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gs_fpgaboot/gs_fpgaboot.c b/drivers/staging/gs_fpgaboot/gs_fpgaboot.c index 6aa9d7c..1875bd3 100644 --- a/drivers/staging/gs_fpgaboot/gs_fpgaboot.c +++ b/drivers/staging/gs_fpgaboot/gs_fpgaboot.c @@ -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) {