p54: Fix compile warning
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 15 Feb 2011 15:37:06 +0000 (09:37 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 18 Feb 2011 21:53:20 +0000 (16:53 -0500)
If any of the p54-based drivers are built with CONFIG_P54_LEDS not
defined, the following warning is generated:

  CC [M]  drivers/net/wireless/p54/main.o
drivers/net/wireless/p54/main.c: In function ‘p54_register_common’:
drivers/net/wireless/p54/main.c:614:21: warning: unused variable ‘priv’

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/main.c

index 0a78e666e2d1043141ddcae8721d91ff34de7ff7..338e8dcac1f3f4dfe13d3f06372d54c156b4e1ff 100644 (file)
@@ -611,7 +611,7 @@ EXPORT_SYMBOL_GPL(p54_init_common);
 
 int p54_register_common(struct ieee80211_hw *dev, struct device *pdev)
 {
-       struct p54_common *priv = dev->priv;
+       struct p54_common __maybe_unused *priv = dev->priv;
        int err;
 
        err = ieee80211_register_hw(dev);