Skip to contentSkip to conversation

staging: wlan-ng: This patch fixes the checkpatch.pl warning:

PATCH In review Maksymilian Piechota 2 participants 2 messages Jan 31, 2017 – Feb 3, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: wlan-ng: This patch fixes the checkpatch.pl warning:

Fix checkpatch.pl warning:

WARNING: Statements should start on a tabstop

V2: whole if statement cleared up

---
 drivers/staging/wlan-ng/prism2mgmt.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/wlan-ng/prism2mgmt.c +2 -4
index 2d67125..5277f36 100644
@@ -1307,10 +1307,8 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
 		    && (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 {
Signature · 1 line
2.1.4
#1 lore raw
Quoted 1 line · Maksymilian Piechota

Fix checkpatch.pl warning:

Your subject is odd, it leaves something to the imagination :(

Quoted 4 lines

WARNING: Statements should start on a tabstop

V2: whole if statement cleared up

Put this below the --- line.

v3?

thanks,

greg k-h