]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
wl12xx: remove some dead code in wl1271_plt_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 8 Feb 2012 09:20:04 +0000 (12:20 +0300)
committerLuciano Coelho <coelho@ti.com>
Wed, 15 Feb 2012 10:25:26 +0000 (12:25 +0200)
"ret" has already been checked at this point, and we don't need to check
it again.  This was left around from a previous patch 49d750ca14
"wl12xx: 1281/1283 support - New radio structs and functions".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c

index fc8dfbfe1d89c4281009d27544358f7d22231236..adf9bbcf88fdc1d581ac5b2b382a32a1ef5c479e 100644 (file)
@@ -680,8 +680,6 @@ static int wl1271_plt_init(struct wl1271 *wl)
                if (ret < 0)
                        return ret;
        }
-       if (ret < 0)
-               return ret;
 
        /* Chip-specific initializations */
        ret = wl1271_chip_specific_init(wl);