Commit 1dc13236 authored by Jinpeng Cui's avatar Jinpeng Cui Committed by Kalle Valo

wifi: wilc1000: remove redundant ret variable

Return value from cfg80211_rx_mgmt() directly instead of
taking this in another redundant variable.
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarJinpeng Cui <cui.jinpeng2@zte.com.cn>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220830105505.287564-1-cui.jinpeng2@zte.com.cn
parent b0ea758b
...@@ -997,12 +997,11 @@ bool wilc_wfi_mgmt_frame_rx(struct wilc_vif *vif, u8 *buff, u32 size) ...@@ -997,12 +997,11 @@ bool wilc_wfi_mgmt_frame_rx(struct wilc_vif *vif, u8 *buff, u32 size)
{ {
struct wilc *wl = vif->wilc; struct wilc *wl = vif->wilc;
struct wilc_priv *priv = &vif->priv; struct wilc_priv *priv = &vif->priv;
int freq, ret; int freq;
freq = ieee80211_channel_to_frequency(wl->op_ch, NL80211_BAND_2GHZ); freq = ieee80211_channel_to_frequency(wl->op_ch, NL80211_BAND_2GHZ);
ret = cfg80211_rx_mgmt(&priv->wdev, freq, 0, buff, size, 0);
return ret; return cfg80211_rx_mgmt(&priv->wdev, freq, 0, buff, size, 0);
} }
void wilc_wfi_p2p_rx(struct wilc_vif *vif, u8 *buff, u32 size) void wilc_wfi_p2p_rx(struct wilc_vif *vif, u8 *buff, u32 size)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment