Skip to contentSkip to conversation

wl12xx: remove some dead code in wl1271_plt_init()

PATCH Applied Dan Carpenter 2 participants 2 messages Feb 8, 2012 – Feb 15, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wl12xx: remove some dead code in wl1271_plt_init()

"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".

drivers/net/wireless/wl12xx/main.c +0 -2
index f8748ce..96d90e7 100644
@@ -672,8 +672,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);
#1 lore raw
Quoted 5 lines · Dan Carpenter

"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".

Applied. Thanks, Dan!

Signature · 2 lines
Cheers,
Luca.