clocksource/drivers/bcm2835: Remove message for a memory allocation failure
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 27 Aug 2017 19:38:13 +0000 (21:38 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 29 Aug 2017 13:23:31 +0000 (15:23 +0200)
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 <elfring@users.sourceforge.net>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/bcm2835_timer.c

index 82828d3..39e489a 100644 (file)
@@ -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;
        }