[v3,2/3] Staging: vt6656: Bool tests don't need comparisons
diff mbox series

Message ID 1442079123-7475-2-git-send-email-shraddha.6596@gmail.com
State New, archived
Headers show
Series
  • [v3,1/3] Staging: rtl8723au: core: Bool tests don't need comparisons
Related show

Commit Message

Shraddha Barke Sept. 12, 2015, 5:32 p.m. UTC
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(-)

Patch
diff mbox series

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;