]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iwlwifi: fix indentation in iwl_load_given_ucode
authorJohannes Berg <johannes.berg@intel.com>
Sun, 9 Sep 2012 18:59:17 +0000 (20:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 10 Sep 2012 17:12:52 +0000 (19:12 +0200)
There's a block of code that's indented too
far, move it out to where it should be.

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

index 7da075f5bffa39a495689211e57069fdeb81f848..3f11b17e14ce790a83a3f41d277818971913c5a2 100644 (file)
@@ -979,17 +979,16 @@ static int iwl_load_section(struct iwl_trans *trans, u8 section_num,
 static int iwl_load_given_ucode(struct iwl_trans *trans,
                                const struct fw_img *image)
 {
-       int ret = 0;
-               int i;
+       int i, ret = 0;
 
-               for (i = 0; i < IWL_UCODE_SECTION_MAX; i++) {
-                       if (!image->sec[i].p_addr)
-                               break;
+       for (i = 0; i < IWL_UCODE_SECTION_MAX; i++) {
+               if (!image->sec[i].p_addr)
+                       break;
 
-                       ret = iwl_load_section(trans, i, &image->sec[i]);
-                       if (ret)
-                               return ret;
-               }
+               ret = iwl_load_section(trans, i, &image->sec[i]);
+               if (ret)
+                       return ret;
+       }
 
        /* Remove all resets to allow NIC to operate */
        iwl_write32(trans, CSR_RESET, 0);