Skip to content

Commit 466da3d

Browse files
MrVanabelvesa
authored andcommitted
clk: imx: composite-7ulp: Use NULL instead of 0
Address the sparse warnings " sparse warnings: (new ones prefixed by >>) >> drivers/clk/imx/clk-composite-7ulp.c:85:24: sparse: sparse: Using plain integer as NULL pointer " Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Peng Fan <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abel Vesa <[email protected]>
1 parent 1919d77 commit 466da3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/imx/clk-composite-7ulp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static struct clk_hw *imx_ulp_clk_hw_composite(const char *name,
8282
val = readl(reg);
8383
if (!(val & PCG_PR_MASK)) {
8484
pr_info("PCC PR is 0 for clk:%s, bypass\n", name);
85-
return 0;
85+
return NULL;
8686
}
8787

8888
if (mux_present) {

0 commit comments

Comments
 (0)