]> asedeno.scripts.mit.edu Git - linux.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)
commitbb5c43428252f27b875c764451321a83a531d6e5
tree471cc65029d5958edabc9813996da1f1221d1abf
parentae64f9bd1d3621b5e60d7363bc20afb46aede215
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: 75f1133873d6 ("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