summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorSandhya Bankar2016-03-07 13:18:16 +0100
committerGreg Kroah-Hartman2016-03-12 07:09:09 +0100
commitb08e0fc0d4f5457aae0936c0c891c916cf63b852 (patch)
tree98d79758ae4376915bbf430c66975b9aa3940ab3 /drivers/staging/rtl8188eu
parentStaging: rtl8188eu: Do not print message if kzalloc() failed. (diff)
downloadkernel-qcow2-linux-b08e0fc0d4f5457aae0936c0c891c916cf63b852.tar.gz
kernel-qcow2-linux-b08e0fc0d4f5457aae0936c0c891c916cf63b852.tar.xz
kernel-qcow2-linux-b08e0fc0d4f5457aae0936c0c891c916cf63b852.zip
Staging: rtl8188eu: rtw_efuse: Do not print message if kzalloc() failed.
Do not print message if kzalloc() failed. kzalloc() has its own messages. So no need to add extra one. Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_efuse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_efuse.c b/drivers/staging/rtl8188eu/core/rtw_efuse.c
index fd8cf472e8dc..cca42e5bf9e0 100644
--- a/drivers/staging/rtl8188eu/core/rtw_efuse.c
+++ b/drivers/staging/rtl8188eu/core/rtw_efuse.c
@@ -104,10 +104,8 @@ efuse_phymap_to_logical(u8 *phymap, u16 _offset, u16 _size_byte, u8 *pbuf)
u8 u1temp = 0;
efuseTbl = kzalloc(EFUSE_MAP_LEN_88E, GFP_KERNEL);
- if (efuseTbl == NULL) {
- DBG_88E("%s: alloc efuseTbl fail!\n", __func__);
+ if (!efuseTbl)
return;
- }
eFuseWord = (u16 **)rtw_malloc2d(EFUSE_MAX_SECTION_88E, EFUSE_MAX_WORD_UNIT, sizeof(u16));
if (eFuseWord == NULL) {