Skip to content

Commit

Permalink
ath6kl: Remove WARN_ON msg in Suspend path
Browse files Browse the repository at this point in the history
In the current code, WOW resume is executed first from RX path
and ar->state is moved to ATH6KL_STATE_ON. When platform calls
ath6kl_sdio_resume() in CFG resume context, that time ar->state
could have moved to ON state. Printing WARN_ON(1) is void in
this context. Hence removing this.

Once WOW resume is removed from RX path, This WARN_ON msg can be
reverted.

Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Raja Mani authored and Kalle Valo committed Nov 11, 2011
1 parent a918fb3 commit 0737237
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wireless/ath/ath6kl/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,6 @@ static int ath6kl_sdio_resume(struct ath6kl *ar)
break;

case ATH6KL_STATE_ON:
/* we shouldn't be on this state during resume */
WARN_ON(1);
break;

case ATH6KL_STATE_DEEPSLEEP:
Expand Down

0 comments on commit 0737237

Please sign in to comment.