iwlwifi: mvm: remove shadowing variable
authorJohannes Berg <johannes.berg@intel.com>
Thu, 14 Jan 2016 09:46:38 +0000 (10:46 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 1 Feb 2016 14:40:20 +0000 (16:40 +0200)
The outer scope has a perfectly suitable 'i' variable,
use it instead of adding a shadowing one in the inner
scope.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c

index 94ec3f0c15cf983231468c2e2a557bd7745aa1f1..4856eac120f60d5eff2e9707e828e541761a76ae 100644 (file)
@@ -644,8 +644,6 @@ void iwl_mvm_fw_error_dump(struct iwl_mvm *mvm)
 
        /* Dump fw's virtual image */
        if (mvm->fw->img[mvm->cur_ucode].paging_mem_size) {
-               u32 i;
-
                for (i = 1; i < mvm->num_of_paging_blk + 1; i++) {
                        struct iwl_fw_error_dump_paging *paging;
                        struct page *pages =