diff options
author | Pierre-Yves Kerbrat <pkerbrat@free.fr> | 2016-10-19 20:49:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-25 10:57:13 +0200 |
commit | fb26718744c46f34fb9b8cdf5f73030548978b49 (patch) | |
tree | de46845552c276998c8833160ef1997bea913a3e /drivers/staging/rtl8188eu/os_dep | |
parent | 1050394cd7f0223adfb8ae6faf11a30bd0b7b5f3 (diff) | |
download | op-kernel-dev-fb26718744c46f34fb9b8cdf5f73030548978b49.zip op-kernel-dev-fb26718744c46f34fb9b8cdf5f73030548978b49.tar.gz |
staging: rtl8188eu: os_dep: remove unnecessary alloc fail message
Remove redundant alloc fail message
This patch fixes the warning found by checkpatch
Signed-off-by: Pierre-Yves Kerbrat <pkerbrat@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/os_dep')
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/osdep_service.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/osdep_service.c b/drivers/staging/rtl8188eu/os_dep/osdep_service.c index c036fe7..6ff836f 100644 --- a/drivers/staging/rtl8188eu/os_dep/osdep_service.c +++ b/drivers/staging/rtl8188eu/os_dep/osdep_service.c @@ -43,14 +43,12 @@ void *rtw_malloc2d(int h, int w, int size) int j; void **a = kzalloc(h * sizeof(void *) + h * w * size, GFP_KERNEL); - if (!a) { - pr_info("%s: alloc memory fail!\n", __func__); - return NULL; - } + if (!a) + goto out; for (j = 0; j < h; j++) a[j] = ((char *)(a + h)) + j * w * size; - +out: return a; } |