Commit fe0b7c61 authored by Larry Finger's avatar Larry Finger Committed by John W. Linville

p54: Fix compile warning

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: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 12873372
...@@ -611,7 +611,7 @@ EXPORT_SYMBOL_GPL(p54_init_common); ...@@ -611,7 +611,7 @@ EXPORT_SYMBOL_GPL(p54_init_common);
int p54_register_common(struct ieee80211_hw *dev, struct device *pdev) 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; int err;
err = ieee80211_register_hw(dev); err = ieee80211_register_hw(dev);
......
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