From 295face99be9c1a214c2a80c2c6a889dbff5e1cf Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Wed, 9 Nov 2016 12:00:46 +0100 Subject: clk: gate: fix coding style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The : of the ?: operator should have a leading space. Signed-off-by: Uwe Kleine-König [sboyd@codeaurora.org: Also remove useless parenthesis] Signed-off-by: Stephen Boyd --- drivers/clk/clk-gate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/clk/clk-gate.c') 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; -- cgit v1.2.3