1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Minor refactor

This commit is contained in:
Alex Forencich 2021-12-12 14:21:13 -08:00
parent a53d3acd3f
commit 2f70a871a7

View File

@ -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);
// unregister interrupt
if (ring->irq) {
if (ring->irq)
ret = atomic_notifier_chain_unregister(&ring->irq->nh, &ring->irq_nb);
ring->irq = NULL;
}
ring->active = 0;
}