Staging: rtl8188eu: Use !x instead of x==NULL.
PATCH 1/1 Staging: rtl8188eu: Use !x instead of x==NULL.
Use !x instead of x==NULL.
Signed-off-by Sandhya Bankar <[email protected]>
--- drivers/staging/rtl8188eu/core/rtw_efuse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8188eu/core/rtw_efuse.c +2 -2
@@ -108,7 +108,7 @@ efuse_phymap_to_logical(u8 *phymap, u16 _offset, u16 _size_byte, u8 *pbuf)return ; eFuseWord = (u16 **)rtw_malloc2d (EFUSE_MAX_SECTION_88E ,EFUSE_MAX_WORD_UNIT ,sizeof (u16)); -if (eFuseWord ==NULL ) { +if (!eFuseWord) {DBG_88E ("%s: alloc eFuseWord fail!\n" , __func__); goto eFuseWord_failed; }
@@ -493,7 +493,7 @@ int Efuse_PgPacketRead(struct adapter *pAdapter, u8 offset, u8 *data)EFUSE_GetEfuseDefinition (pAdapter,EFUSE_WIFI ,TYPE_EFUSE_MAX_SECTION , (void *)&max_section); -if (data ==NULL ) +if (!data)return false;if (offset > max_section)return false;
Signature · 1 line
1.8.3.4