diff options
author | Ebru Akagunduz <ebru.akagunduz@gmail.com> | 2014-10-03 13:23:00 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-20 10:29:12 +0800 |
commit | 44396c7bce449eb6bcb862c6336f5da9ff44c867 (patch) | |
tree | 00ffdb099430f67380bcde17c7a67d686d401630 /drivers/staging/gs_fpgaboot | |
parent | Staging: rtl8188eu: core: Remove variable that is not very useful. (diff) | |
download | linux-dev-44396c7bce449eb6bcb862c6336f5da9ff44c867.tar.xz linux-dev-44396c7bce449eb6bcb862c6336f5da9ff44c867.zip |
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>
Diffstat (limited to 'drivers/staging/gs_fpgaboot')
-rw-r--r-- | drivers/staging/gs_fpgaboot/gs_fpgaboot.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) { |