Skip to contentSkip to conversation

add parentheses

PATCH In review Roel Kluin 2 participants 2 messages Feb 2, 2008 Networking drivers (wireless)

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 add parentheses

'!' has a higher priority than '&': bitanding has no effect.

---

drivers/net/wireless/iwlwifi/iwl-4965.c +1 -1
index 569347f..2439868 100644
@@ -4589,7 +4589,7 @@ static u8 iwl4965_is_fat_tx_allowed(struct iwl4965_priv *priv,
 
 	if (sta_ht_inf) {
 		if ((!sta_ht_inf->ht_supported) ||
-		   (!sta_ht_inf->cap & IEEE80211_HT_CAP_SUP_WIDTH))
+		   (!(sta_ht_inf->cap & IEEE80211_HT_CAP_SUP_WIDTH)))
 			return 0;
 	}
 
#1 lore raw
Quoted 18 lines · Roel Kluin

'!' has a higher priority than '&': bitanding has no effect.

---

drivers/net/wireless/iwlwifi/iwl-4965.c +1 -2
index 569347f..2439868 100644
@@ -4589,7 +4589,7 @@ static u8 iwl4965_is_fat_tx_allowed(struct iwl4965_priv *priv,
 
        if (sta_ht_inf) {
                if ((!sta_ht_inf->ht_supported) ||
-                  (!sta_ht_inf->cap & IEEE80211_HT_CAP_SUP_WIDTH))
+                  (!(sta_ht_inf->cap & IEEE80211_HT_CAP_SUP_WIDTH)))
                        return 0;
        }
 
-
Quoted 4 lines

To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

ACK