diff options
author | Punit Vara <punitvara@gmail.com> | 2015-10-24 22:31:25 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-25 19:12:54 (GMT) |
commit | 047e6646579c2853afba0111f573796daf4fd485 (patch) | |
tree | c0f959e0f790ef0b54967b3a5a481646219981da /drivers | |
parent | 5e16d07501becacdc766132facaceba47db839a6 (diff) | |
download | linux-047e6646579c2853afba0111f573796daf4fd485.tar.xz |
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: Punit Vara <punitvara@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/wilc1000/host_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 4c7e1e4..5f81eab 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -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"); if (hif_drv->strWILC_UsrScanReq.u32RcvdChCount < MAX_NUM_SCANNED_NETWORKS) { @@ -2692,7 +2692,7 @@ static void Handle_PowerManagement(struct host_if_drv *hif_drv, strWID.id = (u16)WID_POWER_MANAGEMENT; - if (strPowerMgmtParam->enabled == true) + if (strPowerMgmtParam->enabled) s8PowerMode = MIN_FAST_PS; else s8PowerMode = NO_POWERSAVE; |