Skip to content

Commit

Permalink
b43: fix "‘gmode’ may be used uninitialized" warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John W. Linville committed Jan 13, 2009
1 parent 85b9e4f commit 922d8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/b43/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 922d8a0

Please sign in to comment.