Skip to contentSkip to conversation

mac80211: silence an uninitialize variable warning

PATCH Applied Dan Carpenter 2 participants 2 messages Jun 27, 2016 – Jun 28, 2016

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

PATCH 1/1 mac80211: silence an uninitialize variable warning

We normally return an unitialized value, but no one checks it so it doesn't matter. Anyway, let's silence the static checker warning.

net/mac80211/tdls.c +1 -0
index 1c7d45a..b5d28f1 100644
@@ -1747,6 +1747,7 @@ ieee80211_process_tdls_channel_switch_resp(struct ieee80211_sub_if_data *sdata,
 		goto out;
 	}
 
+	ret = 0;
 call_drv:
 	drv_tdls_recv_channel_switch(sdata->local, sdata, &params);
 
maintainer Applied
#1 lore raw
Quoted 3 lines · Dan Carpenter

We normally return an unitialized value, but no one checks it so it doesn't matter.  Anyway, let's silence the static checker warning.

Applied.

johannes