Skip to contentSkip to conversation

clk/ti/adpll: Make const pointer error a static const array

PATCH Applied Colin Ian King 3 participants 3 messages Nov 27, 2021 – Dec 9, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk/ti/adpll: Make const pointer error a static const array

Make const pointer error a static const array, removes a dereference and shrinks object code a little.

---
 drivers/clk/ti/adpll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/ti/adpll.c +1 -1
index b341cd990be7..962502ca7ff0 100644
@@ -807,7 +807,7 @@ static int ti_adpll_init_registers(struct ti_adpll_data *d)
 
 static int ti_adpll_init_inputs(struct ti_adpll_data *d)
 {
-	const char *error = "need at least %i inputs";
+	static const char error[] = "need at least %i inputs";
 	struct clk *clock;
 	int nr_inputs;
 
Signature · 1 line
2.33.1