]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: Fix error code in ath11k_core_suspend()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Dec 2020 08:31:19 +0000 (11:31 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 17 Dec 2020 06:48:07 +0000 (08:48 +0200)
commit7dfc89640e08bcaad9d2a38619ab4fcb61f98495
tree1b46cb7ed42a954f7a4a8a3372d1435d513f3858
parent41be156e82e6f09d7a9ab82f1ae043e6e51ba1ec
ath11k: Fix error code in ath11k_core_suspend()

The "if (!ret)" condition is inverted and it should be "if (ret)".  It means
that we return success when we had intended to return an error code. This also
caused a spurious warning even when the suspend was successful:

[  297.186612] ath11k_pci 0000:06:00.0: failed to suspend hif: 0

Fixes: 9bc99f9e1f8d ("ath11k: implement suspend for QCA6390 PCI devices")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/X9nF17L2/EKOSbn/@mwanda
drivers/net/wireless/ath/ath11k/core.c