Skip to content

Commit 75f1133

Browse files
keesKAGA-KOKO
authored andcommitted
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: Kees Cook <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/20171122205645.GA27125@beast
1 parent 328bf1b commit 75f1133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/irq/matrix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ unsigned int irq_matrix_available(struct irq_matrix *m, bool cpudown)
384384
{
385385
struct cpumap *cm = this_cpu_ptr(m->maps);
386386

387-
return m->global_available - cpudown ? cm->available : 0;
387+
return (m->global_available - cpudown) ? cm->available : 0;
388388
}
389389

390390
/**

0 commit comments

Comments
 (0)