Skip to contentSkip to conversation

staging: vt6655: Remove true comparison

PATCH New Amitoj Kaur Chawla 1 participant 1 message Oct 5, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vt6655: Remove true comparison

Remove comparison to true in if statement. Problem found using checkpatch.pl
CHECK: Using comparison to true is error prone

---
 drivers/staging/vt6655/card.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vt6655/card.c +1 -1
index ecbe94f..f842be6 100644
@@ -428,7 +428,7 @@ bool CARDbRadioPowerOff(struct vnt_private *pDevice)
 {
 	bool bResult = true;
 
-	if (pDevice->bRadioOff == true)
+	if (pDevice->bRadioOff)
 		return true;
 
 	switch (pDevice->byRFType) {
Signature · 1 line
1.9.1