staging: vt6656: Boolean tests don't need comparisons.
authorAbdul Hussain <habdul@visteon.com>
Tue, 16 Jun 2015 05:43:16 +0000 (05:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Jun 2015 04:26:45 +0000 (21:26 -0700)
This patch remove true and false from boolean tests.

Signed-off-by: Abdul Hussain <habdul@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/card.c
drivers/staging/vt6656/main_usb.c
drivers/staging/vt6656/rxtx.c
drivers/staging/vt6656/usbpipe.c

index 67ff13f4f7311b222578b1757edc95b3f46cdaac..a215563de07db6587562011afcd09df548578b0a 100644 (file)
@@ -389,7 +389,7 @@ void vnt_update_ifs(struct vnt_private *priv)
                        }
                }
 
-               if (ofdm_rate == true)
+               if (ofdm_rate)
                        max_min = 4;
                else
                        max_min = 5;
index ab3ab84cb0a717179472971d2817724441cbb350..cb8c2db7073422f66367e5546acc25a785c35f90 100644 (file)
@@ -522,7 +522,7 @@ static int vnt_start(struct ieee80211_hw *hw)
 
        priv->rx_buf_sz = MAX_TOTAL_SIZE_WITH_ALL_HEADERS;
 
-       if (vnt_alloc_bufs(priv) == false) {
+       if (!vnt_alloc_bufs(priv)) {
                dev_dbg(&priv->usb->dev, "vnt_alloc_bufs fail...\n");
                return -ENOMEM;
        }
index 5c589962a1e841ad66c41fe2057df51f18cdee31..8116791f4f068e38a05986fb5a76c9e88fb8ff87 100644 (file)
@@ -87,7 +87,7 @@ static struct vnt_usb_send_context
                        return NULL;
 
                context = priv->tx_context[ii];
-               if (context->in_use == false) {
+               if (!context->in_use) {
                        context->in_use = true;
                        memset(context->data, 0,
                                        MAX_TOTAL_SIZE_WITH_ALL_HEADERS);
index 88bf518f23eb6c5360ffb07ab8359d08b4fcf33d..a5912dde9b31e1bff79322f3238e4ba202247185 100644 (file)
@@ -141,7 +141,7 @@ int vnt_start_interrupt_urb(struct vnt_private *priv)
 {
        int status = STATUS_FAILURE;
 
-       if (priv->int_buf.in_use == true)
+       if (priv->int_buf.in_use)
                return STATUS_FAILURE;
 
        priv->int_buf.in_use = true;