diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2016-11-09 12:00:46 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-11-09 12:05:50 -0800 |
commit | 295face99be9c1a214c2a80c2c6a889dbff5e1cf (patch) | |
tree | 19852183e10f4ee8b07d4db74a4ba1888d528bc2 | |
parent | 2517b32bd9e178b0701f18f9ae8cc043f464dcea (diff) | |
download | linux-295face99be9c1a214c2a80c2c6a889dbff5e1cf.tar.bz2 |
clk: gate: fix coding style
The : of the ?: operator should have a leading space.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
[sboyd@codeaurora.org: Also remove useless parenthesis]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r-- | drivers/clk/clk-gate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index 4e691e35483a..4e0c054a787c 100644 --- a/drivers/clk/clk-gate.c +++ b/drivers/clk/clk-gate.c @@ -145,8 +145,8 @@ struct clk_hw *clk_hw_register_gate(struct device *dev, const char *name, init.name = name; init.ops = &clk_gate_ops; init.flags = flags | CLK_IS_BASIC; - init.parent_names = (parent_name ? &parent_name: NULL); - init.num_parents = (parent_name ? 1 : 0); + init.parent_names = parent_name ? &parent_name : NULL; + init.num_parents = parent_name ? 1 : 0; /* struct clk_gate assignments */ gate->reg = reg; |