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

Commit d50466c9 authored by Soren Brinkmann's avatar Soren Brinkmann Committed by Michal Simek
Browse files

microblaze: intc: Refactor DT sanity check



Avoid funky casts and arithmetic.

Signed-off-by: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 2c80a072
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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",