summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-mux.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-11-05 09:59:39 +0100
committerMichael Turquette <mturquette@baylibre.com>2015-12-22 19:11:52 +0100
commit3837bd277abd08395588139759cbd56f00f14cb4 (patch)
treee9a1e27541a93fc6f7f58fd8217cb005a7646908 /drivers/clk/clk-mux.c
parentMerge branch 'clk-fixes' into clk-next (diff)
downloadlinux-3837bd277abd08395588139759cbd56f00f14cb4.tar.xz
linux-3837bd277abd08395588139759cbd56f00f14cb4.zip
clk: fix codying style of if ... else blocks
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>
Diffstat (limited to 'drivers/clk/clk-mux.c')
-rw-r--r--drivers/clk/clk-mux.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c
index 7129c86a79db..5ed03c8a8df9 100644
--- a/drivers/clk/clk-mux.c
+++ b/drivers/clk/clk-mux.c
@@ -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;