Skip to content

Commit 9259228

Browse files
Colin Ian Kingbebarino
authored andcommitted
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. Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Tony Lindgren <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent fa55b7d commit 9259228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/ti/adpll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ static int ti_adpll_init_registers(struct ti_adpll_data *d)
807807

808808
static int ti_adpll_init_inputs(struct ti_adpll_data *d)
809809
{
810-
const char *error = "need at least %i inputs";
810+
static const char error[] = "need at least %i inputs";
811811
struct clk *clock;
812812
int nr_inputs;
813813

0 commit comments

Comments
 (0)