staging: vt6656: Fixed multiple logical comparisions warnings in main_usb.c
authorParth Sane <laerdevstudios@gmail.com>
Wed, 23 Mar 2016 19:38:29 +0000 (01:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
Using comparison to false and true is error prone. Fixed multiple warnings as
per checkpatch guidelines.

Signed-off-by: Parth Sane <laerdevstudios@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/main_usb.c

index f9afab77b79fb5e5718d1b19a2df5e7cb1cd35fa..5e774962e54705d49f174daf7b9b65f41d30d0bb 100644 (file)
@@ -238,7 +238,7 @@ static int vnt_init_registers(struct vnt_private *priv)
                priv->tx_antenna_mode = ANT_B;
                priv->rx_antenna_sel = 1;
 
-               if (priv->tx_rx_ant_inv == true)
+               if (priv->tx_rx_ant_inv)
                        priv->rx_antenna_mode = ANT_A;
                else
                        priv->rx_antenna_mode = ANT_B;
@@ -248,14 +248,14 @@ static int vnt_init_registers(struct vnt_private *priv)
                if (antenna & EEP_ANTENNA_AUX) {
                        priv->tx_antenna_mode = ANT_A;
 
-                       if (priv->tx_rx_ant_inv == true)
+                       if (priv->tx_rx_ant_inv)
                                priv->rx_antenna_mode = ANT_B;
                        else
                                priv->rx_antenna_mode = ANT_A;
                } else {
                        priv->tx_antenna_mode = ANT_B;
 
-               if (priv->tx_rx_ant_inv == true)
+               if (priv->tx_rx_ant_inv)
                        priv->rx_antenna_mode = ANT_A;
                else
                        priv->rx_antenna_mode = ANT_B;