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


Groups > linux.kernel > #1223432

[PATCH v3 2/3] Staging: vt6656: Bool tests don't need comparisons

From Shraddha Barke <shraddha.6596@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v3 2/3] Staging: vt6656: Bool tests don't need comparisons
Date 2015-09-12 19:40 +0200
Message-ID <q7WWm-7ke-15@gated-at.bofh.it> (permalink)
References <q7WWl-7ke-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This patch removes comparisons to true/false values on bool variables.

Change in v3-
 Fix made manually

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
---
 drivers/staging/vt6656/wcmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656/wcmd.c
index 3cbf479..c8e69ff 100644
--- a/drivers/staging/vt6656/wcmd.c
+++ b/drivers/staging/vt6656/wcmd.c
@@ -177,7 +177,7 @@ int vnt_schedule_command(struct vnt_private *priv, enum vnt_cmd command)
 	ADD_ONE_WITH_WRAP_AROUND(priv->cmd_enqueue_idx, CMD_Q_SIZE);
 	priv->free_cmd_queue--;
 
-	if (priv->cmd_running == false)
+	if (!priv->cmd_running)
 		vnt_cmd_complete(priv);
 
 	return true;
-- 
2.1.4

--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 1/3] Staging: rtl8723au: core: Bool tests don't need comparisons Shraddha Barke <shraddha.6596@gmail.com> - 2015-09-12 19:40 +0200
  [PATCH v3 2/3] Staging: vt6656: Bool tests don't need comparisons Shraddha Barke <shraddha.6596@gmail.com> - 2015-09-12 19:40 +0200
  Re: [PATCH v3 3/3] Staging: rtl8188eu: Bool tests don't need  comparisons Julia Lawall <julia.lawall@lip6.fr> - 2015-09-12 19:40 +0200
    Re: [PATCH v3 3/3] Staging: rtl8188eu: Bool tests don't need  comparisons Julia Lawall <julia.lawall@lip6.fr> - 2015-09-13 07:40 +0200
  [PATCH v3 3/3] Staging: rtl8188eu: Bool tests don't need comparisons Shraddha Barke <shraddha.6596@gmail.com> - 2015-09-12 19:40 +0200

csiph-web