Skip to contentSkip to conversation

Staging: wlan-ng: Fix wrong #ifdef #endif sequence

PATCH In review Maximiliano David Bustos 1 participant 1 message Nov 8, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Staging: wlan-ng: Fix wrong #ifdef #endif sequence

This patch fixes bug #13820 from bugzilla.kernel.org. Quote: "If ETHTOOL_GLINK
is not defined, the end for switch case is not to be found."

---
 drivers/staging/wlan-ng/p80211netdev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/wlan-ng/p80211netdev.c +1 -1
index aa1792c..b7b4a73 100644
@@ -522,8 +522,8 @@ static int p80211netdev_ethtool(wlandevice_t *wlandev, void __user *useraddr)
 		if (copy_to_user(useraddr, &edata, sizeof(edata)))
 			return -EFAULT;
 		return 0;
-	}
 #endif
+	}
 
 	return -EOPNOTSUPP;
 }
Signature · 1 line
1.7.1