Skip to content

Commit

Permalink
clocksource/drivers/bcm2835: Remove message for a memory allocation f…
Browse files Browse the repository at this point in the history
…ailure

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>
  • Loading branch information
Markus Elfring authored and Daniel Lezcano committed Aug 29, 2017
1 parent 4e18111 commit ebbe266
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/clocksource/bcm2835_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ebbe266

Please sign in to comment.