]> git.baikalelectronics.ru Git - kernel.git/commit
lib/vdso: Let do_coarse() return 0 to simplify the callsite
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 23 Dec 2019 14:31:07 +0000 (14:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Sep 2022 08:27:47 +0000 (10:27 +0200)
commitceda210ab263693ce02d2d844d7dd837c9edd5b0
treef24ff1e0deae8f78a9894f31d69f025447bdd395
parentec7d124747e9be4c21d9b22e4aac278948a3c779
lib/vdso: Let do_coarse() return 0 to simplify the callsite

[ Upstream commit d1403f4b6d62ea4ea03d96d99bccf2245463523c ]

do_coarse() is similar to do_hres() except that it never fails.

Change its type to int instead of void and let it always return success (0)
to simplify the call site.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/21e8afa38c02ca8672c2690307383507fe63b454.1577111367.git.christophe.leroy@c-s.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
lib/vdso/gettimeofday.c