clocksource: davinci: axe a pointless __GFP_NOFAIL
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 9 Apr 2020 10:12:26 +0000 (12:12 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 9 Apr 2020 10:13:20 +0000 (12:13 +0200)
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
drivers/clocksource/timer-davinci.c

index aae9383682303a824cd7a50c9af41b17c1040295..bb4eee31ae082baf17a9d55fed38018060433250 100644 (file)
@@ -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;