Check the result of the function, not the pointer to it.
This commit is contained in:
parent
1d1b4bce53
commit
ad86fd010c
@ -83,7 +83,7 @@ qoriq_clkgen_ofw_mapper(struct clkdom *clkdom, uint32_t ncells,
|
||||
|
||||
*clk = clknode_find_by_id(clkdom, QORIQ_CLK_ID(cells[0], cells[1]));
|
||||
|
||||
if (clk == NULL)
|
||||
if (*clk == NULL)
|
||||
return (EINVAL);
|
||||
|
||||
return (0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user