fpga: altera: cyclon2: Fix indentation
authorAlexander Dahl <ada@thorsis.com>
Fri, 28 Jun 2019 12:41:22 +0000 (14:41 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 30 Jul 2019 08:21:14 +0000 (10:21 +0200)
Some code parts stood too far left …

Signed-off-by: Alexander Dahl <ada@thorsis.com>
drivers/fpga/cyclon2.c

index 99a64d437cc6722529d3f97a1c40f12e804b9935..ab979b017a2628a32fc7d3522a6bb89639223f8f 100644 (file)
@@ -162,28 +162,28 @@ static int CYC2_ps_load(Altera_desc *desc, const void *buf, size_t bsize)
                putc(' ');                      /* terminate the dotted line */
 #endif
 
-       /*
-        * Checking FPGA's CONF_DONE signal - correctly booted ?
-        */
-
-       if (!(*fn->done) (cookie)) {
-               puts("** Booting failed! CONF_DONE is still deasserted.\n");
-               (*fn->abort) (cookie);
-               return FPGA_FAIL;
-       }
+               /*
+                * Checking FPGA's CONF_DONE signal - correctly booted ?
+                */
+
+               if (!(*fn->done) (cookie)) {
+                       puts("** Booting failed! CONF_DONE is still deasserted.\n");
+                       (*fn->abort) (cookie);
+                       return FPGA_FAIL;
+               }
 #ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
-       puts(" OK\n");
+               puts(" OK\n");
 #endif
 
-       ret_val = FPGA_SUCCESS;
+               ret_val = FPGA_SUCCESS;
 
 #ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
-       if (ret_val == FPGA_SUCCESS)
-               puts("Done.\n");
-       else
-               puts("Fail.\n");
+               if (ret_val == FPGA_SUCCESS)
+                       puts("Done.\n");
+               else
+                       puts("Fail.\n");
 #endif
-       (*fn->post) (cookie);
+               (*fn->post) (cookie);
 
        } else {
                printf("%s: NULL Interface function table!\n", __func__);