]> git.baikalelectronics.ru Git - kernel.git/commit
genirq/matrix: Fix the precedence fix for real
authorThomas Gleixner <tglx@linutronix.de>
Tue, 28 Nov 2017 14:40:33 +0000 (15:40 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 4 Dec 2017 19:50:35 +0000 (20:50 +0100)
commit26119fc625b86a0fb317530c0a2fc8594eeabe2a
tree471cc65029d5958edabc9813996da1f1221d1abf
parent801e5e26cc5ea4b1605798e8aa077abea774915f
genirq/matrix: Fix the precedence fix for real

The previous commit which made the operator precedence in
irq_matrix_available() explicit made the implicit brokenness explicitely
wrong. It was wrong in the original commit already. The overworked
maintainer did not notice it either when merging the patch.

Replace the confusing '?' construct by a simple and obvious if ().

Fixes: 2709f54f9746 ("genirq/matrix: Make - vs ?: Precedence explicit")
Reported-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Kees Cook <keescook@chromium.org>
kernel/irq/matrix.c