Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebbe2665 authored by Markus Elfring's avatar Markus Elfring Committed by Daniel Lezcano
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 4e18111f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}