staging: rtl8712: Remove comparison to true
authorBranden Bonaby <brandonbonaby94@gmail.com>
Tue, 26 Mar 2019 17:29:30 +0000 (13:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Mar 2019 14:33:27 +0000 (23:33 +0900)
Remove the comparison to true in the if statement.
CHECK: Using comparison to true is error prone.

Signed-off-by: Branden Bonaby <brandonbonaby94@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_xmit.c

index d8ff4ba0cfa0489bb97cc1405b70947147eae0a2..7574a4b569a4ddb943c97db33548d59854150eb3 100644 (file)
@@ -532,7 +532,7 @@ static void update_txdesc(struct xmit_frame *pxmitframe, uint *pmem, int sz)
                    (pattrib->dhcp_pkt != 1)) {
                        /*Not EAP & ARP type data packet*/
                        if (phtpriv->ht_option == 1) { /*B/G/N Mode*/
-                               if (phtpriv->ampdu_enable != true)
+                               if (!phtpriv->ampdu_enable)
                                        ptxdesc->txdw2 |= cpu_to_le32(BK);
                        }
                } else {