Check the result of the function, not the pointer to it.

This commit is contained in:
Michal Meloun 2020-09-27 16:15:03 +00:00
parent 1d1b4bce53
commit ad86fd010c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366200

View File

@ -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);