]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
b43legacy: fix "‘up_dev’ may be used uninitialized" warning
authorJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Jan 2009 19:43:18 +0000 (14:43 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 Jan 2009 15:25:45 +0000 (10:25 -0500)
drivers/net/wireless/b43legacy/main.c: In function ‘b43legacy_op_dev_config’:
drivers/net/wireless/b43legacy/main.c:2468: warning: ‘up_dev’ may be used uninitialized in this function

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

index c1324e31d2f6465e0260e4df84e6e85c49c35e28..fb996c27a19b4b3340b7e682f319eae0a627631e 100644 (file)
@@ -2465,7 +2465,7 @@ static void b43legacy_put_phy_into_reset(struct b43legacy_wldev *dev)
 static int b43legacy_switch_phymode(struct b43legacy_wl *wl,
                                      unsigned int new_mode)
 {
-       struct b43legacy_wldev *up_dev;
+       struct b43legacy_wldev *uninitialized_var(up_dev);
        struct b43legacy_wldev *down_dev;
        int err;
        bool gmode = 0;