Skip to content

Commit

Permalink
microblaze: intc: Don't override error codes
Browse files Browse the repository at this point in the history
Just pass on error codes instead of overriding them.

Signed-off-by: Soren Brinkmann <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
sorenb-xlnx authored and Michal Simek committed Jan 8, 2015
1 parent ed89466 commit 2c80a07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/microblaze/kernel/intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ static int __init xilinx_intc_of_init(struct device_node *intc,
ret = of_property_read_u32(intc, "xlnx,num-intr-inputs", &nr_irq);
if (ret < 0) {
pr_err("%s: unable to read xlnx,num-intr-inputs\n", __func__);
return -EINVAL;
return ret;
}

ret = of_property_read_u32(intc, "xlnx,kind-of-intr", &intr_mask);
if (ret < 0) {
pr_err("%s: unable to read xlnx,kind-of-intr\n", __func__);
return -EINVAL;
return ret;
}

if (intr_mask > (u32)((1ULL << nr_irq) - 1))
Expand Down

0 comments on commit 2c80a07

Please sign in to comment.