Skip to content

Commit

Permalink
wl12xx: remove some dead code in wl1271_plt_init()
Browse files Browse the repository at this point in the history
"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 49d750c
"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>
  • Loading branch information
Dan Carpenter authored and Luciano Coelho committed Feb 15, 2012
1 parent 9b44350 commit 51c4ed9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 51c4ed9

Please sign in to comment.