Staging: wlan-ng: prism2mgmt: Fixed operators spacing style issues
authorShiva Kerdel <shiva@exdev.nl>
Fri, 18 Nov 2016 13:12:42 +0000 (14:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Nov 2016 13:21:58 +0000 (14:21 +0100)
Fixed spaces around operators to fix their coding style issues.

Signed-off-by: Shiva Kerdel <shiva@exdev.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2mgmt.c

index 16fb2d3e0f51ab2a39e770ec6a3ef146626bb08c..c558ad656c49e2a8348edac02fde055fd7f1732c 100644 (file)
 #include "prism2mgmt.h"
 
 /* Converts 802.11 format rate specifications to prism2 */
-#define p80211rate_to_p2bit(n) ((((n)&~BIT(7)) == 2) ? BIT(0) :  \
-                                (((n)&~BIT(7)) == 4) ? BIT(1) : \
-                                (((n)&~BIT(7)) == 11) ? BIT(2) : \
-                                (((n)&~BIT(7)) == 22) ? BIT(3) : 0)
+#define p80211rate_to_p2bit(n) ((((n) & ~BIT(7)) == 2) ? BIT(0) :  \
+                                (((n) & ~BIT(7)) == 4) ? BIT(1) : \
+                                (((n) & ~BIT(7)) == 11) ? BIT(2) : \
+                                (((n) & ~BIT(7)) == 22) ? BIT(3) : 0)
 
 /*----------------------------------------------------------------
  * prism2mgmt_scan
@@ -427,8 +427,8 @@ int prism2mgmt_scan_results(struct wlandevice *wlandev, void *msgp)
 #define REQBASICRATE(N) \
        do { \
                if ((count >= N) && DOT11_RATE5_ISBASIC_GET( \
-                       item->supprates[(N)-1])) { \
-                       req->basicrate ## N .data = item->supprates[(N)-1]; \
+                       item->supprates[(N) - 1])) { \
+                       req->basicrate ## N .data = item->supprates[(N) - 1]; \
                        req->basicrate ## N .status = \
                                P80211ENUM_msgitem_status_data_ok; \
                } \
@@ -446,7 +446,7 @@ int prism2mgmt_scan_results(struct wlandevice *wlandev, void *msgp)
 #define REQSUPPRATE(N) \
        do { \
                if (count >= N) { \
-                       req->supprate ## N .data = item->supprates[(N)-1]; \
+                       req->supprate ## N .data = item->supprates[(N) - 1]; \
                        req->supprate ## N .status = \
                                P80211ENUM_msgitem_status_data_ok; \
                } \