]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wlan-ng: remove extra parentheses
authorGargi Sharma <gs051095@gmail.com>
Sat, 18 Feb 2017 05:37:41 +0000 (11:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:16:59 +0000 (09:16 +0100)
Removes extra parentheses around function arguments. Issue
detected and resolved using the following coccinelle script:

@@
expression e;
identifier f;
@@

f(...,
-(
e
-)
,...)

Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211conv.c

index 8b0905e7c9bea969b4cb04425bb589d35333501c..a062e80361ef578b6de7c9e958c4a1ccc15f25c9 100644 (file)
@@ -211,7 +211,7 @@ int skb_ether_to_p80211(struct wlandevice *wlandev, u32 ethconv,
                        return -ENOMEM;
                foo = wep_encrypt(wlandev, skb->data, p80211_wep->data,
                                  skb->len,
-                                 (wlandev->hostwep & HOSTWEP_DEFAULTKEY_MASK),
+                                 wlandev->hostwep & HOSTWEP_DEFAULTKEY_MASK,
                                  p80211_wep->iv, p80211_wep->icv);
                if (foo) {
                        netdev_warn(wlandev->netdev,