]> Pileus Git - ~andy/linux/commitdiff
Staging: wlan-ng: Fix wrong #ifdef #endif sequence
authorMaximiliano David Bustos <md.bustos90@gmail.com>
Mon, 8 Nov 2010 20:34:57 +0000 (17:34 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 10 Nov 2010 00:51:42 +0000 (16:51 -0800)
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."

Signed-off-by: Maximiliano David Bustos <md.bustos90@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/wlan-ng/p80211netdev.c

index aa1792c8429ea4c049868f40f9374d9e326a3743..b7b4a733b467f69b95e864d41dcb1f4af79db8d7 100644 (file)
@@ -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;
 }