Author: mmel
Date: Sun Sep 27 16:15:03 2020
New Revision: 366200
URL: https://svnweb.freebsd.org/changeset/base/366200
Log:
Check the result of the function, not the pointer to it.
Modified:
head/sys/arm64/qoriq/clk/qoriq_clkgen.c
Modified: head/sys/arm64/qoriq/clk/qoriq_clkgen.c
==============================================================================
--- head/sys/arm64/qoriq/clk/qoriq_clkgen.c Sun Sep 27 13:32:02 2020
(r366199)
+++ head/sys/arm64/qoriq/clk/qoriq_clkgen.c Sun Sep 27 16:15:03 2020
(r366200)
@@ -83,7 +83,7 @@ qoriq_clkgen_ofw_mapper(struct clkdom *clkdom, uint32_
*clk = clknode_find_by_id(clkdom, QORIQ_CLK_ID(cells[0], cells[1]));
- if (clk == NULL)
+ if (*clk == NULL)
return (EINVAL);
return (0);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"