]> 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)
commitdc760d05c86e525edde3fc05ed2fb338e7aa06d1
treef24ff1e0deae8f78a9894f31d69f025447bdd395
parent9b655bb8976351d55233d2d54d7a6d89ed3a06f3
lib/vdso: Let do_coarse() return 0 to simplify the callsite

[ Upstream commit 8b1151949031d67482042f1f301d1cc1639db6c2 ]

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