Skip to contentSkip to conversation

iwlwifi: Fix -EIO error code that is never returned

PATCH New Colin King 1 participant 1 message Sep 7, 2021

Subsystems (4)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 iwlwifi: Fix -EIO error code that is never returned

From: Colin Ian King <[email protected]>

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")
---
 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c +1 -1
index 75e7665773c5..90fe4adca492 100644
@@ -304,7 +304,7 @@ static int iwlagn_mac_start(struct ieee80211_hw *hw)
 
 	priv->is_open = 1;
 	IWL_DEBUG_MAC80211(priv, "leave\n");
-	return 0;
+	return ret;
 }
 
 static void iwlagn_mac_stop(struct ieee80211_hw *hw)
Signature · 1 line
2.32.0