]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wlan_ng: fix logical continuation alignment
authorFrans Klaver <fransklaver@gmail.com>
Thu, 9 Feb 2017 21:58:21 +0000 (22:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2017 14:06:44 +0000 (15:06 +0100)
It appears that our coding style prefers that logical continuations
have the operator at the end of the line. Fix that.

While at it, stick the 'if' after 'else' where it belongs.

Signed-off-by: Frans Klaver <fransklaver@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2mgmt.c

index c558ad656c49e2a8348edac02fde055fd7f1732c..0e671c3b308d61cf581651b5e2016683b4214ee1 100644 (file)
@@ -1303,14 +1303,13 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
                /* Set the driver state */
                /* Do we want the prism2 header? */
                if ((msg->prismheader.status ==
-                    P80211ENUM_msgitem_status_data_ok)
-                   && (msg->prismheader.data == P80211ENUM_truth_true)) {
+                    P80211ENUM_msgitem_status_data_ok) &&
+                   (msg->prismheader.data == P80211ENUM_truth_true)) {
                        hw->sniffhdr = 0;
                        wlandev->netdev->type = ARPHRD_IEEE80211_PRISM;
-               } else
-                   if ((msg->wlanheader.status ==
-                        P80211ENUM_msgitem_status_data_ok)
-                       && (msg->wlanheader.data == P80211ENUM_truth_true)) {
+               } else if ((msg->wlanheader.status ==
+                           P80211ENUM_msgitem_status_data_ok) &&
+                          (msg->wlanheader.data == P80211ENUM_truth_true)) {
                        hw->sniffhdr = 1;
                        wlandev->netdev->type = ARPHRD_IEEE80211_PRISM;
                } else {