[PATCH] ieee80211: trivial fix for misplaced ()'s
authorDenis Vlasenko <vda@ilport.com.ua>
Sun, 22 Jan 2006 11:57:10 +0000 (13:57 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 31 Jan 2006 01:35:31 +0000 (20:35 -0500)
Patch fixes misplaced (). Diffed against wireless-2.6.git

Signed-off-by: Denis Vlasenko <vda@ilport.com.ua>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/ieee80211/ieee80211_rx.c

index e2f1553ecb7c22b59676d10e92e3f681ad78147e..c032b82eb56f2915026472b932809fa2f9622ceb 100644 (file)
@@ -574,7 +574,7 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
        /* skb: hdr + (possibly fragmented) plaintext payload */
        // PR: FIXME: hostap has additional conditions in the "if" below:
        // ieee->host_decrypt && (fc & IEEE80211_FCTL_PROTECTED) &&
-       if ((frag != 0 || (fc & IEEE80211_FCTL_MOREFRAGS))) {
+       if ((frag != 0) || (fc & IEEE80211_FCTL_MOREFRAGS)) {
                int flen;
                struct sk_buff *frag_skb = ieee80211_frag_cache_get(ieee, hdr);
                IEEE80211_DEBUG_FRAG("Rx Fragment received (%u)\n", frag);