提交 d50466c9 编写于 作者: S Soren Brinkmann 提交者: Michal Simek

microblaze: intc: Refactor DT sanity check

Avoid funky casts and arithmetic.
Signed-off-by: NSoren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
上级 2c80a072
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册