Skip to content

Commit

Permalink
clocksource: davinci: axe a pointless __GFP_NOFAIL
Browse files Browse the repository at this point in the history
There is no need to specify __GFP_NOFAIL when allocating memory here, so
axe it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200409101226.15432-1-christophe.jaillet@wanadoo.fr
  • Loading branch information
Christophe JAILLET authored and Daniel Lezcano committed Apr 9, 2020
1 parent bdf8783 commit 4855f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clocksource/timer-davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ int __init davinci_timer_register(struct clk *clk,
davinci_timer_init(base);
tick_rate = clk_get_rate(clk);

clockevent = kzalloc(sizeof(*clockevent), GFP_KERNEL | __GFP_NOFAIL);
clockevent = kzalloc(sizeof(*clockevent), GFP_KERNEL);
if (!clockevent)
return -ENOMEM;

Expand Down

0 comments on commit 4855f2b

Please sign in to comment.