]> err.no Git - linux-2.6/commitdiff
[PATCH] b43legacy: Fix potential return of uninitialized variable
authorLarry Finger <Larry.Finger@lwfinger.net>
Sun, 14 Oct 2007 21:04:30 +0000 (16:04 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 18 Oct 2007 19:44:42 +0000 (15:44 -0400)
Using the Coverity checker, Adrian Bunk found that routine b43legacy_start
could return an unitialized variable. This patch fixes the problem.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43legacy/main.c

index f0749510bcd7a193088194ce6b6e935bcd47a105..d09479e816cdf12b79658cc8ebce0586cfd18d74 100644 (file)
@@ -3306,7 +3306,7 @@ static int b43legacy_start(struct ieee80211_hw *hw)
        struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
        struct b43legacy_wldev *dev = wl->current_dev;
        int did_init = 0;
-       int err;
+       int err = 0;
 
        mutex_lock(&wl->mutex);