staging: rtl8723au: No need for CHKBIT since 16 + 12 is still < 32
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 9 May 2014 13:04:15 +0000 (15:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 20:12:02 +0000 (13:12 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_ap.c

index 58b2359a990c8131f61bde05e6f02e3b1a8bfe88..9e66c917ac59dbda7c556d50d315344a8936c376 100644 (file)
@@ -380,9 +380,9 @@ void add_RATid23a(struct rtw_adapter *padapter, struct sta_info *psta, u8 rssi_l
                else
                        limit = 8;/*   1R */
 
-               for (i = 0; i<limit; i++) {
-                       if (psta_ht->ht_cap.mcs.rx_mask[i/8] & BIT(i%8))
-                               tx_ra_bitmap |= CHKBIT(i+12);
+               for (i = 0; i < limit; i++) {
+                       if (psta_ht->ht_cap.mcs.rx_mask[i / 8] & BIT(i % 8))
+                               tx_ra_bitmap |= BIT(i + 12);
                }
 
                /* max short GI rate */