]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clk: gate: fix coding style
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 9 Nov 2016 11:00:46 +0000 (12:00 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 9 Nov 2016 20:05:50 +0000 (12:05 -0800)
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>
drivers/clk/clk-gate.c

index 4e691e35483a7ee5425b36f6d33668f741bdca6a..4e0c054a787c07f93c287c4d38b306dffd3ee409 100644 (file)
@@ -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;