]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iwlwifi: Fix -EIO error code that is never returned
authorColin Ian King <colin.king@canonical.com>
Tue, 7 Sep 2021 10:46:58 +0000 (11:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Apr 2022 12:14:48 +0000 (14:14 +0200)
commit0b85cd1cac71dd7b5b2cb682ad4e10f7b41f489a
treeaf4d29b088f7492354a5c210baf4268b1db0136e
parent6ca1e695e8ae3397680ecf70791758836e200725
iwlwifi: Fix -EIO error code that is never returned

[ Upstream commit c305c94bdc18e45b5ad1db54da4269f8cbfdff6b ]

Currently the error -EIO is being assinged to variable ret when
the READY_BIT is not set but the function iwlagn_mac_start returns
0 rather than ret. Fix this by returning ret instead of 0.

Addresses-Coverity: ("Unused value")
Fixes: 7335613ae27a ("iwlwifi: move all mac80211 related functions to one place")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210907104658.14706-1-colin.king@canonical.com
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c