Skip to contentSkip to conversation

net: wireless: ath: Remove unneeded variable ret returning 0

PATCH Superseded Punit Vara 1 participant 1 message Oct 23, 2015

Subsystems (3)
lore
Share & tools
lore

Punit Vara

author
#0 lore raw

PATCH v6 14/15 net: wireless: ath: Remove unneeded variable ret returning 0

This warning is reported by coccicheck:

---
 drivers/net/wireless/ath/wcn36xx/main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/wireless/ath/wcn36xx/main.c +1 -3
index 900e72a..94bcc08 100644
@@ -935,8 +935,6 @@ static const struct ieee80211_ops wcn36xx_ops = {
 
 static int wcn36xx_init_ieee80211(struct wcn36xx *wcn)
 {
-	int ret = 0;
-
 	static const u32 cipher_suites[] = {
 		WLAN_CIPHER_SUITE_WEP40,
 		WLAN_CIPHER_SUITE_WEP104,
@@ -977,7 +975,7 @@ static int wcn36xx_init_ieee80211(struct wcn36xx *wcn)
 	wcn->hw->sta_data_size = sizeof(struct wcn36xx_sta);
 	wcn->hw->vif_data_size = sizeof(struct wcn36xx_vif);
 
-	return ret;
+	return 0;
 }
 
 static int wcn36xx_platform_get_resources(struct wcn36xx *wcn,
Signature · 1 line
2.5.3