From: Sujith Manoharan Date: Fri, 30 Jan 2015 13:35:23 +0000 (+0530) Subject: ath9k: Remove redundant device_can_wakeup() check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=410b4e27992b7bc3ed8064dc9383eb66c1fee04d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ath9k: Remove redundant device_can_wakeup() check WOW capability is registered with mac80211 only when the device has the ability to wakeup, so there is no need to check in the suspend() routine. Signed-off-by: Sujith Manoharan Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath9k/wow.c b/drivers/net/wireless/ath/ath9k/wow.c index 1d5cd88783bd..272c05c5c24e 100644 --- a/drivers/net/wireless/ath/ath9k/wow.c +++ b/drivers/net/wireless/ath/ath9k/wow.c @@ -212,12 +212,6 @@ int ath9k_suspend(struct ieee80211_hw *hw, ath_cancel_work(sc); ath_stop_ani(sc); - if (!device_can_wakeup(sc->dev)) { - ath_dbg(common, WOW, "device_can_wakeup failed, WoW is not enabled\n"); - ret = 1; - goto fail_wow; - } - /* * none of the sta vifs are associated * and we are not currently handling multivif