b43: fix "‘gmode’ may be used uninitialized" warning
authorJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Jan 2009 19:40:20 +0000 (14:40 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 Jan 2009 15:25:45 +0000 (10:25 -0500)
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 <linville@tuxdriver.com>
drivers/net/wireless/b43/main.c

index 7b31a327b24a33e643be1021360af7fdcb8273da..c788bad10661b5fa2442d37ea636561e95258688 100644 (file)
@@ -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. */