diff options
author | Kees Cook <keescook@chromium.org> | 2017-11-22 21:56:45 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-11-23 20:09:31 +0100 |
commit | 75f1133873d6a1276d3c19918b7c94975840f990 (patch) | |
tree | 421c20209b771710454d53e22a879ceb84543cec /kernel/irq/matrix.c | |
parent | irqchip/imgpdc: Use resource_size function on resource object (diff) | |
download | linux-75f1133873d6a1276d3c19918b7c94975840f990.tar.xz linux-75f1133873d6a1276d3c19918b7c94975840f990.zip |
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 <keescook@chromium.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20171122205645.GA27125@beast
Diffstat (limited to 'kernel/irq/matrix.c')
-rw-r--r-- | kernel/irq/matrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/matrix.c b/kernel/irq/matrix.c index a3cbbc8191c5..7df2480005f8 100644 --- a/kernel/irq/matrix.c +++ b/kernel/irq/matrix.c @@ -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; } /** |