From: Heinrich Schuchardt Date: Tue, 2 Aug 2016 19:26:21 +0000 (+0200) Subject: rtlwifi: remove superfluous condition X-Git-Tag: v4.9-rc1~127^2~176^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f898005ff99f348febba88dff8840df6e4367758;p=platform%2Fkernel%2Flinux-exynos.git rtlwifi: remove superfluous condition If sta == NULL, the changed line will not be reached. So no need to check that sta != NULL here. Signed-off-by: Heinrich Schuchardt Acked-by: Larry Finger Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/realtek/rtlwifi/core.c b/drivers/net/wireless/realtek/rtlwifi/core.c index 41f77f8..7aee5ebb1 100644 --- a/drivers/net/wireless/realtek/rtlwifi/core.c +++ b/drivers/net/wireless/realtek/rtlwifi/core.c @@ -1135,7 +1135,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw, mac->mode = WIRELESS_MODE_AC_24G; } - if (vif->type == NL80211_IFTYPE_STATION && sta) + if (vif->type == NL80211_IFTYPE_STATION) rtlpriv->cfg->ops->update_rate_tbl(hw, sta, 0); rcu_read_unlock();