[PATCH 10/11] Staging: drivers: rtl8188eu: fixed if-NULL comparisons style

From: Jacky Boen
Date: Sun May 01 2016 - 11:52:08 EST


Fixed coding style issue

Signed-off-by: Jacky Boen <aqiank@xxxxxxxxx>
---
drivers/staging/rtl8188eu/hal/usb_halinit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c b/drivers/staging/rtl8188eu/hal/usb_halinit.c
index 82269eb..ef04638 100644
--- a/drivers/staging/rtl8188eu/hal/usb_halinit.c
+++ b/drivers/staging/rtl8188eu/hal/usb_halinit.c
@@ -1969,7 +1969,7 @@ static void UpdateHalRAMask8188EUsb(struct adapter *adapt, u32 mac_id, u8 rssi_l
if (mac_id >= NUM_STA) /* CAM_SIZE */
return;
psta = pmlmeinfo->FW_sta_info[mac_id].psta;
- if (psta == NULL)
+ if (!psta)
return;
switch (mac_id) {
case 0:/* for infra mode */
@@ -2079,7 +2079,7 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt)


adapt->HalData = kzalloc(sizeof(struct hal_data_8188e), GFP_KERNEL);
- if (adapt->HalData == NULL)
+ if (!adapt->HalData)
DBG_88E("cant not alloc memory for HAL DATA\n");

halfunc->hal_power_on = rtl8188eu_InitPowerOn;
--
2.7.4