Skip to content

Commit

Permalink
clk/ti/adpll: Make const pointer error a static const array
Browse files Browse the repository at this point in the history
Make const pointer error a static const array, removes a dereference
and shrinks object code a little.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20211127173036.150535-1-colin.i.king@gmail.com
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
  • Loading branch information
Colin Ian King authored and Stephen Boyd committed Dec 10, 2021
1 parent fa55b7d commit 9259228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/ti/adpll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9259228

Please sign in to comment.