o wl3501: remove duplicate assignment of link->irq.IRQInfo2

parent 4d9c7aa6
......@@ -1975,9 +1975,7 @@ static dev_link_t *wl3501_attach(void)
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE | IRQ_HANDLE_PRESENT;
link->irq.IRQInfo1 = IRQ_INFO2_VALID | IRQ_LEVEL_ID;
link->irq.IRQInfo2 = wl3501_irq_mask;
if (wl3501_irq_list[0] == -1)
link->irq.IRQInfo2 = wl3501_irq_mask;
else
if (wl3501_irq_list[0] != -1)
for (i = 0; i < 4; i++)
link->irq.IRQInfo2 |= 1 << wl3501_irq_list[i];
link->irq.Handler = wl3501_interrupt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment