Commit 047e6646 authored by Punit Vara's avatar Punit Vara Committed by Greg Kroah-Hartman

Staging: wilc1000: Remove boolean comparision

This patch is to the host_interface.c file that fixes up following
warning reported by coccicheck:

WARNING: Comparison to bool

Boolean tests do not need explicit comparison to true or false
Signed-off-by: default avatarPunit Vara <punitvara@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5e16d075
...@@ -1438,7 +1438,7 @@ static s32 Handle_RcvdNtwrkInfo(struct host_if_drv *hif_drv, ...@@ -1438,7 +1438,7 @@ static s32 Handle_RcvdNtwrkInfo(struct host_if_drv *hif_drv,
} }
} }
if (bNewNtwrkFound == true) { if (bNewNtwrkFound) {
PRINT_D(HOSTINF_DBG, "New network found\n"); PRINT_D(HOSTINF_DBG, "New network found\n");
if (hif_drv->strWILC_UsrScanReq.u32RcvdChCount < MAX_NUM_SCANNED_NETWORKS) { if (hif_drv->strWILC_UsrScanReq.u32RcvdChCount < MAX_NUM_SCANNED_NETWORKS) {
...@@ -2692,7 +2692,7 @@ static void Handle_PowerManagement(struct host_if_drv *hif_drv, ...@@ -2692,7 +2692,7 @@ static void Handle_PowerManagement(struct host_if_drv *hif_drv,
strWID.id = (u16)WID_POWER_MANAGEMENT; strWID.id = (u16)WID_POWER_MANAGEMENT;
if (strPowerMgmtParam->enabled == true) if (strPowerMgmtParam->enabled)
s8PowerMode = MIN_FAST_PS; s8PowerMode = MIN_FAST_PS;
else else
s8PowerMode = NO_POWERSAVE; s8PowerMode = NO_POWERSAVE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment