]> git.baikalelectronics.ru Git - kernel.git/commit
futex: Consistently use fshared as boolean
authorAndré Almeida <andrealmeid@collabora.com>
Thu, 2 Jul 2020 20:28:43 +0000 (17:28 -0300)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 17 Jul 2020 23:56:08 +0000 (01:56 +0200)
commit7a176451b984fa85af6863f43bbd3046d96d319c
tree920df620f5b8b507004752dce90a4eb58b2c87da
parent2650959df164be6e875993120abe9b9ff911e564
futex: Consistently use fshared as boolean

Since fshared is only conveying true/false values, declare it as bool.

In get_futex_key() the usage of fshared can be restricted to the first part
of the function. If fshared is false the function is terminated early and
the subsequent code can use a constant 'true' instead of the variable.

Signed-off-by: André Almeida <andrealmeid@collabora.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200702202843.520764-5-andrealmeid@collabora.com
kernel/futex.c