mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
Minor refactor
This commit is contained in:
parent
a53d3acd3f
commit
2f70a871a7
@ -178,10 +178,10 @@ void mqnic_deactivate_eq_ring(struct mqnic_eq_ring *ring)
|
|||||||
iowrite32(0, ring->hw_addr + MQNIC_EVENT_QUEUE_INTERRUPT_INDEX_REG);
|
iowrite32(0, ring->hw_addr + MQNIC_EVENT_QUEUE_INTERRUPT_INDEX_REG);
|
||||||
|
|
||||||
// unregister interrupt
|
// unregister interrupt
|
||||||
if (ring->irq) {
|
if (ring->irq)
|
||||||
ret = atomic_notifier_chain_unregister(&ring->irq->nh, &ring->irq_nb);
|
ret = atomic_notifier_chain_unregister(&ring->irq->nh, &ring->irq_nb);
|
||||||
|
|
||||||
ring->irq = NULL;
|
ring->irq = NULL;
|
||||||
}
|
|
||||||
|
|
||||||
ring->active = 0;
|
ring->active = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user