Messages in this thread Patch in this message | | | From | Michael Straube <> | Subject | [PATCH 6/6] staging: rtl8188eu: cleanup comparsion to NULL in usb_halinit.c | Date | Fri, 26 Jul 2019 20:04:48 +0200 |
| |
Use if(!x) instead of if(x == NULL). Reported by checkpatch.
Signed-off-by: Michael Straube <straube.linux@gmail.com> --- drivers/staging/rtl8188eu/hal/usb_halinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c b/drivers/staging/rtl8188eu/hal/usb_halinit.c index 0f54fde2f47b..16a57b31a439 100644 --- a/drivers/staging/rtl8188eu/hal/usb_halinit.c +++ b/drivers/staging/rtl8188eu/hal/usb_halinit.c @@ -1889,7 +1889,7 @@ void UpdateHalRAMask8188EUsb(struct adapter *adapt, u32 mac_id, u8 rssi_level) 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 */ -- 2.22.0
| |