Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Punit Vara and committed by
Greg Kroah-Hartman
047e6646 5e16d075

+2 -2
+2 -2
drivers/staging/wilc1000/host_interface.c
··· 1438 1438 } 1439 1439 } 1440 1440 1441 - if (bNewNtwrkFound == true) { 1441 + if (bNewNtwrkFound) { 1442 1442 PRINT_D(HOSTINF_DBG, "New network found\n"); 1443 1443 1444 1444 if (hif_drv->strWILC_UsrScanReq.u32RcvdChCount < MAX_NUM_SCANNED_NETWORKS) { ··· 2692 2692 2693 2693 strWID.id = (u16)WID_POWER_MANAGEMENT; 2694 2694 2695 - if (strPowerMgmtParam->enabled == true) 2695 + if (strPowerMgmtParam->enabled) 2696 2696 s8PowerMode = MIN_FAST_PS; 2697 2697 else 2698 2698 s8PowerMode = NO_POWERSAVE;