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 <ebru.akagunduz@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9cc56fa827
commit
44396c7bce
1 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue