clk: fix codying style of if ... else blocks
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 5 Nov 2015 08:59:39 +0000 (17:59 +0900)
committerMichael Turquette <mturquette@baylibre.com>
Tue, 22 Dec 2015 18:11:52 +0000 (10:11 -0800)
This code is unreadable due to the blank line between if and else
blocks.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
drivers/clk/clk-mux.c

index 7129c86a79dbfa679fa6dd707dab70aad9821324..5ed03c8a8df9e122b904d5c62bb603f884d4deb5 100644 (file)
@@ -71,10 +71,9 @@ static int clk_mux_set_parent(struct clk_hw *hw, u8 index)
        u32 val;
        unsigned long flags = 0;
 
-       if (mux->table)
+       if (mux->table) {
                index = mux->table[index];
-
-       else {
+       } else {
                if (mux->flags & CLK_MUX_INDEX_BIT)
                        index = 1 << index;