spl: mmc: Fix indentation in spl_mmc.c file
authorMans Rullgard <mans@mansr.com>
Tue, 3 Sep 2019 14:17:17 +0000 (16:17 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 11 Oct 2019 19:33:27 +0000 (15:33 -0400)
This fixes a wrongly indented block of code.

Signed-off-by: Mans Rullgard <mans@mansr.com>
[lukma: Make the commit message more verbose]
Signed-off-by: Lukasz Majewski <lukma@denx.de>
common/spl/spl_mmc.c

index ebc566081ad7267e40a9f79ce2298e407da97ac1..fa19aa76b3e7f48ddff6685b8bfb1a0d40a5ad44 100644 (file)
@@ -355,28 +355,28 @@ int spl_mmc_load(struct spl_image_info *spl_image,
        err = -EINVAL;
        switch (boot_mode) {
        case MMCSD_MODE_EMMCBOOT:
-                       /*
-                        * We need to check what the partition is configured to.
-                        * 1 and 2 match up to boot0 / boot1 and 7 is user data
-                        * which is the first physical partition (0).
-                        */
-                       part = (mmc->part_config >> 3) & PART_ACCESS_MASK;
-
-                       if (part == 7)
-                               part = 0;
-
-                       if (CONFIG_IS_ENABLED(MMC_TINY))
-                               err = mmc_switch_part(mmc, part);
-                       else
-                               err = blk_dselect_hwpart(mmc_get_blk_desc(mmc), part);
-
-                       if (err) {
+               /*
+                * We need to check what the partition is configured to.
+                * 1 and 2 match up to boot0 / boot1 and 7 is user data
+                * which is the first physical partition (0).
+                */
+               part = (mmc->part_config >> 3) & PART_ACCESS_MASK;
+
+               if (part == 7)
+                       part = 0;
+
+               if (CONFIG_IS_ENABLED(MMC_TINY))
+                       err = mmc_switch_part(mmc, part);
+               else
+                       err = blk_dselect_hwpart(mmc_get_blk_desc(mmc), part);
+
+               if (err) {
 #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
-                               puts("spl: mmc partition switch failed\n");
+                       puts("spl: mmc partition switch failed\n");
 #endif
-                               return err;
-                       }
-                       /* Fall through */
+                       return err;
+               }
+               /* Fall through */
        case MMCSD_MODE_RAW:
                debug("spl: mmc boot mode: raw\n");