Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75f11338 authored by Kees Cook's avatar Kees Cook Committed by Thomas Gleixner
Browse files

genirq/matrix: Make - vs ?: Precedence explicit



Noticed with a Clang build. This improves the readability of the ?:
expression, as it has lower precedence than the - expression. Show
explicitly that - is evaluated first.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20171122205645.GA27125@beast
parent 328bf1b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -384,7 +384,7 @@ unsigned int irq_matrix_available(struct irq_matrix *m, bool cpudown)
{
	struct cpumap *cm = this_cpu_ptr(m->maps);

	return m->global_available - cpudown ? cm->available : 0;
	return (m->global_available - cpudown) ? cm->available : 0;
}

/**