提交 bffb7db2 编写于 作者: G Geliang Tang 提交者: Kalle Valo

ath6kl: drop unlikely behind WARN_ON()

WARN_ON() already contain an unlikely compiler flag. Drop it.
Signed-off-by: NGeliang Tang <geliangtang@163.com>
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 706452b0
...@@ -2217,7 +2217,7 @@ static int ath6kl_wow_suspend(struct ath6kl *ar, struct cfg80211_wowlan *wow) ...@@ -2217,7 +2217,7 @@ static int ath6kl_wow_suspend(struct ath6kl *ar, struct cfg80211_wowlan *wow)
/* enter / leave wow suspend on first vif always */ /* enter / leave wow suspend on first vif always */
first_vif = ath6kl_vif_first(ar); first_vif = ath6kl_vif_first(ar);
if (WARN_ON(unlikely(!first_vif)) || if (WARN_ON(!first_vif) ||
!ath6kl_cfg80211_ready(first_vif)) !ath6kl_cfg80211_ready(first_vif))
return -EIO; return -EIO;
...@@ -2297,7 +2297,7 @@ static int ath6kl_wow_resume(struct ath6kl *ar) ...@@ -2297,7 +2297,7 @@ static int ath6kl_wow_resume(struct ath6kl *ar)
int ret; int ret;
vif = ath6kl_vif_first(ar); vif = ath6kl_vif_first(ar);
if (WARN_ON(unlikely(!vif)) || if (WARN_ON(!vif) ||
!ath6kl_cfg80211_ready(vif)) !ath6kl_cfg80211_ready(vif))
return -EIO; return -EIO;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册