ath6kl: Remove WARN_ON msg in Suspend path
authorRaja Mani <rmani@qca.qualcomm.com>
Mon, 7 Nov 2011 20:52:46 +0000 (22:52 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 11 Nov 2011 11:00:00 +0000 (13:00 +0200)
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>
drivers/net/wireless/ath/ath6kl/sdio.c

index 0586b3b3ab54be9a20273fb852ca9fd7f115cbb4..beb5f9bf26aff4cb2f01069a1a936cd91c7d9dc4 100644 (file)
@@ -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: