From: Markus Elfring Date: Sun, 27 Aug 2017 19:38:13 +0000 (+0200) Subject: clocksource/drivers/bcm2835: Remove message for a memory allocation failure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ebbe266509d8a5453f51f77277da65d870125b72;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git clocksource/drivers/bcm2835: Remove message for a memory allocation failure The bcm2835_timer_init() function emits an error message in case of a memory allocation failure. This is pointless as the mm core does that already. Remove this message. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Daniel Lezcano --- diff --git a/drivers/clocksource/bcm2835_timer.c b/drivers/clocksource/bcm2835_timer.c index 82828d3a4739..39e489a96ad7 100644 --- a/drivers/clocksource/bcm2835_timer.c +++ b/drivers/clocksource/bcm2835_timer.c @@ -114,7 +114,6 @@ static int __init bcm2835_timer_init(struct device_node *node) timer = kzalloc(sizeof(*timer), GFP_KERNEL); if (!timer) { - pr_err("Can't allocate timer struct\n"); ret = -ENOMEM; goto err_iounmap; }