summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/power.c
diff options
context:
space:
mode:
authorTeodora Baluta <teobaluta@gmail.com>2013-11-10 17:12:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-11-10 11:15:08 -0800
commit1208f14a37fde2669b86bf1b1cd1122ad2ba3579 (patch)
tree995f16a2facf86cd6793478f8016a25697a435c2 /drivers/staging/vt6655/power.c
parent938db28b337b40faa4a5563f2f7e07ebda66ae7b (diff)
downloadlinux-1208f14a37fde2669b86bf1b1cd1122ad2ba3579.tar.bz2
staging: vt6655: delete explicit comparison to bool
This patch fixes the following type of coccinelle detected warnings for driver vt6655: WARNING: Comparison to bool Signed-off-by: Teodora Baluta <teobaluta@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/power.c')
-rw-r--r--drivers/staging/vt6655/power.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/vt6655/power.c b/drivers/staging/vt6655/power.c
index 2340d2f0399b..3da2838006e3 100644
--- a/drivers/staging/vt6655/power.c
+++ b/drivers/staging/vt6655/power.c
@@ -284,16 +284,15 @@ PSbSendNullPacket(
PSMgmtObject pMgmt = pDevice->pMgmt;
unsigned int uIdx;
- if (pDevice->bLinkPass == false) {
+ if (!pDevice->bLinkPass) {
return false;
}
#ifdef TxInSleep
- if ((pDevice->bEnablePSMode == false) &&
- (pDevice->fTxDataInSleep == false)) {
+ if (!pDevice->bEnablePSMode && !pDevice->fTxDataInSleep) {
return false;
}
#else
- if (pDevice->bEnablePSMode == false) {
+ if (!pDevice->bEnablePSMode) {
return false;
}
#endif