From: Dan Carpenter Date: Mon, 27 Jun 2016 14:31:18 +0000 (+0300) Subject: mac80211: silence an uninitialized variable warning X-Git-Tag: v4.8-rc1~140^2~167^2~12 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=49708e3772ce648be425778702a266b207e89d4e;p=linux-2.6-block.git mac80211: silence an uninitialized variable warning We normally return an uninitialized value, but no one checks it so it doesn't matter. Anyway, let's silence the static checker warning. Signed-off-by: Dan Carpenter Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/tdls.c b/net/mac80211/tdls.c index 1c7d45a6d93e..b5d28f14b9cf 100644 --- a/net/mac80211/tdls.c +++ b/net/mac80211/tdls.c @@ -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, ¶ms);