OSDN Git Service

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)
commitbfcf3e92c6c07cd1084624bad5622f3dad96328c
tree6ad36b6da5fa2ddaeffbe2f04090f34b03e8ae6b
parent6ae40e3fdcd33a6ff3c490b9302d6a1861093f65
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