Skip to content

Commit 6f4d3c1

Browse files
Colin Ian Kingbebarino
authored andcommitted
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 <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 4fe02fe commit 6f4d3c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/versatile/clk-versatile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static const struct clk_icst_desc versatile_auxosc_desc __initconst = {
5656
static void __init cm_osc_setup(struct device_node *np,
5757
const struct clk_icst_desc *desc)
5858
{
59-
struct clk *clk = ERR_PTR(-EINVAL);
59+
struct clk *clk;
6060
const char *clk_name = np->name;
6161
const char *parent_name;
6262

0 commit comments

Comments
 (0)