diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-08-27 22:38:13 +0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2017-08-29 16:23:31 +0300 |
commit | ebbe266509d8a5453f51f77277da65d870125b72 (patch) | |
tree | 24db8258335c1d22cc07c8107ad78d5f772c295e /drivers/clocksource/bcm2835_timer.c | |
parent | 4e18111ff38f066422c05f904b3bb4fea981d48e (diff) | |
download | linux-ebbe266509d8a5453f51f77277da65d870125b72.tar.xz |
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>
Diffstat (limited to 'drivers/clocksource/bcm2835_timer.c')
-rw-r--r-- | drivers/clocksource/bcm2835_timer.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |