summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel
diff options
context:
space:
mode:
authorSoren Brinkmann <soren.brinkmann@xilinx.com>2014-12-19 10:21:05 -0800
committerMichal Simek <michal.simek@xilinx.com>2015-01-08 08:37:23 +0100
commitd50466c90724d5aae4d38a9a9bc163bea6f94098 (patch)
tree40b74a8432dff74e525f4a4501cd3e2849d60e84 /arch/microblaze/kernel
parent2c80a072a6c1cc4490fbbde5ba82bc7faf0374f0 (diff)
downloadop-kernel-dev-d50466c90724d5aae4d38a9a9bc163bea6f94098.zip
op-kernel-dev-d50466c90724d5aae4d38a9a9bc163bea6f94098.tar.gz
microblaze: intc: Refactor DT sanity check
Avoid funky casts and arithmetic. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r--arch/microblaze/kernel/intc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/intc.c b/arch/microblaze/kernel/intc.c
index 01ae730..8965fd3 100644
--- a/arch/microblaze/kernel/intc.c
+++ b/arch/microblaze/kernel/intc.c
@@ -157,7 +157,7 @@ static int __init xilinx_intc_of_init(struct device_node *intc,
return ret;
}
- if (intr_mask > (u32)((1ULL << nr_irq) - 1))
+ if (intr_mask >> nr_irq)
pr_info(" ERROR: Mismatch in kind-of-intr param\n");
pr_info("%s: num_irq=%d, edge=0x%x\n",
OpenPOWER on IntegriCloud