diff options
author | Haneen Mohammed | 2015-03-13 18:50:52 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-03-16 15:56:46 +0100 |
commit | 2060f31ae58ea5510c432fed8a32bdef33ac4cd7 (patch) | |
tree | a1b5088e56af318dc317aa57ee4333d19671daeb /drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | |
parent | Staging: rtl8192u: Bool tests don't need comparisons (diff) | |
download | kernel-qcow2-linux-2060f31ae58ea5510c432fed8a32bdef33ac4cd7.tar.gz kernel-qcow2-linux-2060f31ae58ea5510c432fed8a32bdef33ac4cd7.tar.xz kernel-qcow2-linux-2060f31ae58ea5510c432fed8a32bdef33ac4cd7.zip |
Staging: rtl8192u: Remove parentheses around right side an assignment
Parentheses are not needed around the right hand side of an assignment.
This patch remove parenthese of such occurenses. Issue was detected and
solved using the following coccinelle script:
@rule1@
identifier x, y, z;
expression E1, E2;
@@
(
x = (y == z);
|
x = (E1 == E2);
|
x =
-(
...
-)
;
)
Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c')
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c index 5f9ba77fa126..66b158714822 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c @@ -877,7 +877,7 @@ static struct sk_buff *ieee80211_assoc_resp(struct ieee80211_device *ieee, crypt = ieee->crypt[ieee->tx_keyidx]; else crypt = NULL; - encrypt = (crypt && crypt->ops); + encrypt = crypt && crypt->ops; if (encrypt) assoc->capability |= cpu_to_le16(WLAN_CAPABILITY_PRIVACY); |