Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1247763 > unrolled thread

[PATCH] staging: vt6655: Remove boolean comparisons

Started byLuis de Bethencourt <luisbg@osg.samsung.com>
First post2015-10-15 14:40 +0200
Last post2015-10-15 14:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging: vt6655: Remove boolean comparisons Luis de Bethencourt <luisbg@osg.samsung.com> - 2015-10-15 14:40 +0200

#1247763 — [PATCH] staging: vt6655: Remove boolean comparisons

FromLuis de Bethencourt <luisbg@osg.samsung.com>
Date2015-10-15 14:40 +0200
Subject[PATCH] staging: vt6655: Remove boolean comparisons
Message-ID<qjPZ8-6v5-17@gated-at.bofh.it>
Boolean tests do not need explicit comparison to true or false.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
---
 drivers/staging/vt6655/card.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6655/card.c
index f842be6..5159270 100644
--- a/drivers/staging/vt6655/card.c
+++ b/drivers/staging/vt6655/card.c
@@ -472,14 +472,14 @@ bool CARDbRadioPowerOn(struct vnt_private *pDevice)
 	bool bResult = true;
 
 	pr_debug("chester power on\n");
-	if (pDevice->bRadioControlOff == true) {
-		if (pDevice->bHWRadioOff == true)
+	if (pDevice->bRadioControlOff) {
+		if (pDevice->bHWRadioOff)
 			pr_debug("chester bHWRadioOff\n");
-		if (pDevice->bRadioControlOff == true)
+		if (pDevice->bRadioControlOff)
 			pr_debug("chester bRadioControlOff\n");
 		return false; }
 
-	if (pDevice->bRadioOff == false) {
+	if (!pDevice->bRadioOff) {
 		pr_debug("chester pbRadioOff\n");
 		return true; }
 
-- 
2.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web