]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/davinci: Avoid trailing '\n' hidden in pr_fmt()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 9 Apr 2020 09:25:43 +0000 (11:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:52 +0000 (11:35 +0200)
commit1cf08f934e829f61d6769ba8bd0d6d3846d8e0fa
tree960945dbd187ef05e0085830dfc75d13c85e1983
parentdc84561a4380ff0e294cf6faea8c38bcff23a471
clocksource/drivers/davinci: Avoid trailing '\n' hidden in pr_fmt()

[ Upstream commit 3386e319b9e5ce3aa416bdf000d6c8ca72ad29a8 ]

pr_xxx() functions usually have '\n' at the end of the logging message.
Here, this '\n' is added via the 'pr_fmt' macro.

In order to be more consistent with other files, use a more standard
convention and put these '\n' back in the messages themselves and remove it
from the pr_fmt macro.

While at it, remove a useless message in case of 'kzalloc' failure,
especially with a __GFP_NOFAIL flag.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200409092543.14727-1-christophe.jaillet@wanadoo.fr
Stable-dep-of: fb73556386e0 ("clocksource/drivers/davinci: Fix memory leak in davinci_timer_register when init fails")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clocksource/timer-davinci.c