From: Emmanuel Grumbach Date: Wed, 3 Aug 2016 19:06:43 +0000 (+0300) Subject: iwlwifi: mvm: don't use ret when not initialised X-Git-Tag: v5.15~12846^2~7^2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff6e58e648ed5f3cc43891767811d5c3c88bbd41;p=platform%2Fkernel%2Flinux-starfive.git iwlwifi: mvm: don't use ret when not initialised fw-dbg code return ret but that variable was either 0 or not initialised. Return 0 always. Signed-off-by: Emmanuel Grumbach Fixes: 6a95126763fb ("iwlwifi: mvm: send dbg config hcmds to fw if set in tlv") Signed-off-by: Luca Coelho --- diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c index 1abcabb..46b52bf 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c @@ -960,5 +960,6 @@ int iwl_mvm_start_fw_dbg_conf(struct iwl_mvm *mvm, u8 conf_id) } mvm->fw_dbg_conf = conf_id; - return ret; + + return 0; }