staging: rtl8188eu: cleanup comparsion to NULL in usb_halinit.c

Use if(!x) instead of if(x == NULL).
Reported by checkpatch.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Link: https://lore.kernel.org/r/20190726180448.2290-6-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Michael Straube 2019-07-26 20:04:48 +02:00 committed by Greg Kroah-Hartman
parent 1f5bfba56f
commit 2c0e81ec21
1 changed files with 1 additions and 1 deletions

View File

@ -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 */