Commit 55dd5a39 authored by Frans Klaver's avatar Frans Klaver Committed by Greg Kroah-Hartman

staging: wlan_ng: fix logical continuation alignment

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: default avatarFrans Klaver <fransklaver@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 29fcf85b
...@@ -1303,14 +1303,13 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp) ...@@ -1303,14 +1303,13 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
/* Set the driver state */ /* Set the driver state */
/* Do we want the prism2 header? */ /* Do we want the prism2 header? */
if ((msg->prismheader.status == if ((msg->prismheader.status ==
P80211ENUM_msgitem_status_data_ok) P80211ENUM_msgitem_status_data_ok) &&
&& (msg->prismheader.data == P80211ENUM_truth_true)) { (msg->prismheader.data == P80211ENUM_truth_true)) {
hw->sniffhdr = 0; hw->sniffhdr = 0;
wlandev->netdev->type = ARPHRD_IEEE80211_PRISM; wlandev->netdev->type = ARPHRD_IEEE80211_PRISM;
} else } else if ((msg->wlanheader.status ==
if ((msg->wlanheader.status == P80211ENUM_msgitem_status_data_ok) &&
P80211ENUM_msgitem_status_data_ok) (msg->wlanheader.data == P80211ENUM_truth_true)) {
&& (msg->wlanheader.data == P80211ENUM_truth_true)) {
hw->sniffhdr = 1; hw->sniffhdr = 1;
wlandev->netdev->type = ARPHRD_IEEE80211_PRISM; wlandev->netdev->type = ARPHRD_IEEE80211_PRISM;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment