X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fstaging%2Fgs_fpgaboot%2Fgs_fpgaboot.c;h=1875bd3b823fd83ec2125be2d1d88b301589689b;hb=44396c7bce449eb6bcb862c6336f5da9ff44c867;hp=6aa9d7c3013908d5a454479ab08d7e53457a7446;hpb=e99a866c4c6749eb3754e61d43eb18ef32e3556a;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/staging/gs_fpgaboot/gs_fpgaboot.c b/drivers/staging/gs_fpgaboot/gs_fpgaboot.c index 6aa9d7c30139..1875bd3b823f 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) {