Skip to content

Commit

Permalink
ath6kl: drop unlikely behind WARN_ON()
Browse files Browse the repository at this point in the history
WARN_ON() already contain an unlikely compiler flag. Drop it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Geliang Tang authored and Kalle Valo committed Oct 9, 2015
1 parent 706452b commit bffb7db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/ath/ath6kl/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ static int ath6kl_wow_suspend(struct ath6kl *ar, struct cfg80211_wowlan *wow)

/* enter / leave wow suspend on first vif always */
first_vif = ath6kl_vif_first(ar);
if (WARN_ON(unlikely(!first_vif)) ||
if (WARN_ON(!first_vif) ||
!ath6kl_cfg80211_ready(first_vif))
return -EIO;

Expand Down Expand Up @@ -2297,7 +2297,7 @@ static int ath6kl_wow_resume(struct ath6kl *ar)
int ret;

vif = ath6kl_vif_first(ar);
if (WARN_ON(unlikely(!vif)) ||
if (WARN_ON(!vif) ||
!ath6kl_cfg80211_ready(vif))
return -EIO;

Expand Down

0 comments on commit bffb7db

Please sign in to comment.