Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: versatile: remove redundant assignment to pointer clk

The pointer clk is being initialized with a value that is never read
and is being updated with a new value later on. The initialization
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lkml.kernel.org/r/20200526224116.63549-1-colin.king@canonical.com
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Colin Ian King and committed by
Stephen Boyd
6f4d3c13 4fe02fef

+1 -1
+1 -1
drivers/clk/versatile/clk-versatile.c
··· 56 56 static void __init cm_osc_setup(struct device_node *np, 57 57 const struct clk_icst_desc *desc) 58 58 { 59 - struct clk *clk = ERR_PTR(-EINVAL); 59 + struct clk *clk; 60 60 const char *clk_name = np->name; 61 61 const char *parent_name; 62 62