Skip to content

Commit

Permalink
ipw2x00: silence GCC warning for unused variable 'dev'
Browse files Browse the repository at this point in the history
Building the libipw component without CONFIG_LIBIPW_DEBUG set triggers this GCC
warning:
    drivers/net/wireless/ipw2x00/libipw_wx.c:526:21: warning: unused variable 'dev' [-Wunused-variable]

The cause of this warning is that, without CONFIG_LIBIPW_DEBUG set,
LIBIPW_DEBUG_WX compiles away. Fix it by substituting ieee->dev for (its
equivalent) dev.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Paul Bolle authored and John W. Linville committed Sep 24, 2012
1 parent 646e082 commit 3fc7bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ipw2x00/libipw_wx.c
Original file line number Diff line number Diff line change
@@ -675,7 +675,7 @@ int libipw_wx_set_encodeext(struct libipw_device *ieee,
}
done:
if (ieee->set_security)
ieee->set_security(ieee->dev, &sec);
ieee->set_security(dev, &sec);

return ret;
}

0 comments on commit 3fc7bc8

Please sign in to comment.