Skip to content

Commit

Permalink
iwlwifi: mvm: fix theoretical uninitialized function return value
Browse files Browse the repository at this point in the history
If we try to write NVM that do not exist, the function will return
uninitialized value. fixed.

Signed-off-by: Eytan Lifshitz <eytan.lifshitz@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
  • Loading branch information
Eytan Lifshitz authored and Emmanuel Grumbach committed Jan 13, 2014
1 parent 65b3034 commit 05159fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/mvm/nvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static int iwl_mvm_read_external_nvm(struct iwl_mvm *mvm)
/* Loads the NVM data stored in mvm->nvm_sections into the NIC */
int iwl_mvm_load_nvm_to_nic(struct iwl_mvm *mvm)
{
int i, ret;
int i, ret = 0;
struct iwl_nvm_section *sections = mvm->nvm_sections;

IWL_DEBUG_EEPROM(mvm->trans->dev, "'Write to NVM\n");
Expand Down

0 comments on commit 05159fc

Please sign in to comment.