[PATCH] drivers/net/wireless/b43/main.c: fix an uninitialized variable
authorWANG Cong <xiyou.wangcong@gmail.com>
Tue, 16 Oct 2007 21:29:38 +0000 (14:29 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 18 Oct 2007 19:46:52 +0000 (15:46 -0400)
Fix an uninitialized variable in drivers/net/wireless/b43/main.c::b43_start().

Cc: Adrian Bunk <bunk@kernel.org>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Michael Buesch <mb@bu3sch.de>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Cc: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/main.c

index c9b0d1aa2063061d4f5db1128eead10bc19610dc..5f03efdb63a8807994066607bd0d62d2f6430bb5 100644 (file)
@@ -3494,7 +3494,7 @@ static int b43_start(struct ieee80211_hw *hw)
        struct b43_wl *wl = hw_to_b43_wl(hw);
        struct b43_wldev *dev = wl->current_dev;
        int did_init = 0;
-       int err;
+       int err = 0;
 
        mutex_lock(&wl->mutex);