]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: clk: cosmetic: correct code alignment in show_clks
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 30 Jul 2020 12:04:09 +0000 (14:04 +0200)
committerLukasz Majewski <lukma@denx.de>
Mon, 24 Aug 2020 09:03:26 +0000 (11:03 +0200)
Correct code alignment in show_clks() function.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/clk.c

index 439736d0724e6fc31c47d2f78e0fc898759cef9b..ba4540334abf6a17d3a4f1bc9f31183b125afecf 100644 (file)
--- a/cmd/clk.c
+++ b/cmd/clk.c
@@ -25,24 +25,24 @@ static void show_clks(struct udevice *dev, int depth, int last_flag)
        if (device_get_uclass_id(dev) == UCLASS_CLK && clkp) {
                rate = clk_get_rate(clkp);
 
-       printf(" %-12u  %8d        ", rate, clkp->enable_count);
-
-       for (i = depth; i >= 0; i--) {
-               is_last = (last_flag >> i) & 1;
-               if (i) {
-                       if (is_last)
-                               printf("    ");
-                       else
-                               printf("|   ");
-               } else {
-                       if (is_last)
-                               printf("`-- ");
-                       else
-                               printf("|-- ");
+               printf(" %-12u  %8d        ", rate, clkp->enable_count);
+
+               for (i = depth; i >= 0; i--) {
+                       is_last = (last_flag >> i) & 1;
+                       if (i) {
+                               if (is_last)
+                                       printf("    ");
+                               else
+                                       printf("|   ");
+                       } else {
+                               if (is_last)
+                                       printf("`-- ");
+                               else
+                                       printf("|-- ");
+                       }
                }
-       }
 
-       printf("%s\n", dev->name);
+               printf("%s\n", dev->name);
        }
 
        list_for_each_entry(child, &dev->child_head, sibling_node) {