From: John W. Linville Date: Mon, 12 Jan 2009 19:40:20 +0000 (-0500) Subject: b43: fix "‘gmode’ may be used uninitialized" warning X-Git-Tag: v2.6.29-rc2~11^2~46^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=922d8a0b6d82fb40ffb561576e3800c3784ff43d;p=linux-2.6-omap-h63xx.git b43: fix "‘gmode’ may be used uninitialized" warning drivers/net/wireless/b43/main.c: In function ‘b43_op_config’: drivers/net/wireless/b43/main.c:3264: warning: ‘gmode’ may be used uninitialized Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 7b31a327b24..c788bad1066 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c @@ -3261,7 +3261,7 @@ static int b43_switch_band(struct b43_wl *wl, struct ieee80211_channel *chan) struct b43_wldev *down_dev; struct b43_wldev *d; int err; - bool gmode; + bool uninitialized_var(gmode); int prev_status; /* Find a device and PHY which supports the band. */