Skip to content

Commit ebbe266

Browse files
elfringdlezcano
authored andcommitted
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 <elfring@users.sourceforge.net> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 4e18111 commit ebbe266

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/clocksource/bcm2835_timer.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ static int __init bcm2835_timer_init(struct device_node *node)
114114

115115
timer = kzalloc(sizeof(*timer), GFP_KERNEL);
116116
if (!timer) {
117-
pr_err("Can't allocate timer struct\n");
118117
ret = -ENOMEM;
119118
goto err_iounmap;
120119
}

0 commit comments

Comments
 (0)