summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2016-11-02 19:47:48 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-07 11:32:26 +0100
commitd4e1818a4cd6fcb2b55c75e2b16e1bc50ccc69eb (patch)
treedf5ccbe6dd29059cc6533c5d58599ea857bb9d2c
parentstaging: wlan-ng: change comparison to NULL to preferred style. (diff)
downloadlinux-d4e1818a4cd6fcb2b55c75e2b16e1bc50ccc69eb.tar.xz
linux-d4e1818a4cd6fcb2b55c75e2b16e1bc50ccc69eb.zip
staging: wlan-ng: remove unnecessary parentheses
Avoid no necessary parentheses to comply with the standard kernel coding style. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/wlan-ng/p80211req.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wlan-ng/p80211req.c b/drivers/staging/wlan-ng/p80211req.c
index 3414fd80c803..e9fbe180017f 100644
--- a/drivers/staging/wlan-ng/p80211req.c
+++ b/drivers/staging/wlan-ng/p80211req.c
@@ -132,7 +132,7 @@ int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf)
}
/* Check for busy status */
- if (test_and_set_bit(1, &(wlandev->request_pending)))
+ if (test_and_set_bit(1, &wlandev->request_pending))
return -EBUSY;
/* Allow p80211 to look at msg and handle if desired. */
@@ -144,7 +144,7 @@ int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf)
if (wlandev->mlmerequest)
wlandev->mlmerequest(wlandev, msg);
- clear_bit(1, &(wlandev->request_pending));
+ clear_bit(1, &wlandev->request_pending);
return 0; /* if result==0, msg->status still may contain an err */
}