Skip to contentSkip to conversation

ep93xx: clock: Fix "plain integer as NULL pointer" warning

PATCH New Alexander Sverdlin 1 participant 1 message Dec 9, 2021

Subsystems (3)
lore
Share & tools
lore

Alexander Sverdlin

author maintainer
#0 lore raw

PATCH 1/1 ep93xx: clock: Fix "plain integer as NULL pointer" warning

From: Alexander Sverdlin <[email protected]>

Fix sparse warning (use "NULL" where appropriate).

---
 arch/arm/mach-ep93xx/clock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-ep93xx/clock.c +1 -1
index cc75087134d3..3dfeef00ac5b 100644
@@ -207,7 +207,7 @@ static int ep93xx_mux_determine_rate(struct clk_hw *hw,
 				struct clk_rate_request *req)
 {
 	unsigned long rate = req->rate;
-	struct clk *best_parent = 0;
+	struct clk *best_parent = NULL;
 	unsigned long __parent_rate;
 	unsigned long best_rate = 0, actual_rate, mclk_rate;
 	unsigned long best_parent_rate;
Signature · 1 line
2.32.0