]> 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)
commit8919bcca0b232c8ca313c21646d5aff59a4b2666
tree6ad36b6da5fa2ddaeffbe2f04090f34b03e8ae6b
parent897098504f597c05afbaebebe4fa1d09ab58959f
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