mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
iwlwifi: Fix -EIO error code that is never returned
[ Upstream commitc305c94bdc] 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:7335613ae2("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>
This commit is contained in:
parent
ec376f5c11
commit
c12692c3e9
|
|
@ -304,7 +304,7 @@ static int iwlagn_mac_start(struct ieee80211_hw *hw)
|
||||||
|
|
||||||
priv->is_open = 1;
|
priv->is_open = 1;
|
||||||
IWL_DEBUG_MAC80211(priv, "leave\n");
|
IWL_DEBUG_MAC80211(priv, "leave\n");
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void iwlagn_mac_stop(struct ieee80211_hw *hw)
|
static void iwlagn_mac_stop(struct ieee80211_hw *hw)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user