]> git.baikalelectronics.ru Git - kernel.git/commit
posix-cpu-timers: Use common permission check in posix_cpu_clock_get()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Aug 2019 19:08:49 +0000 (21:08 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 09:50:25 +0000 (11:50 +0200)
commitaa2e907cca7b3834b217e7de10f5ef4602d6102e
tree6ad36b6da5fa2ddaeffbe2f04090f34b03e8ae6b
parentbf3830ae7717e9b6e11dab11721fc19194b991e2
posix-cpu-timers: Use common permission check in posix_cpu_clock_get()

Replace the next slightly different copy of permission checks. That also
removes the necessarity to check the return value of the sample functions
because the clock id is already validated.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r/20190821192919.414813172@linutronix.de
kernel/time/posix-cpu-timers.c