Commit 44396c7b authored by Ebru Akagunduz's avatar Ebru Akagunduz Committed by Greg Kroah-Hartman

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: default avatarEbru Akagunduz <ebru.akagunduz@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9cc56fa8
...@@ -316,10 +316,8 @@ static int gs_fpgaboot(void) ...@@ -316,10 +316,8 @@ static int gs_fpgaboot(void)
struct fpgaimage *fimage; struct fpgaimage *fimage;
fimage = kmalloc(sizeof(struct fpgaimage), GFP_KERNEL); fimage = kmalloc(sizeof(struct fpgaimage), GFP_KERNEL);
if (fimage == NULL) { if (fimage == NULL)
pr_err("No memory is available\n");
goto err_out; goto err_out;
}
err = gs_load_image(fimage, file); err = gs_load_image(fimage, file);
if (err) { if (err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment