]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: Remove unnecessary synchronize_irq() before free_irq()
authorMinghao Chi <chi.minghao@zte.com.cn>
Fri, 13 May 2022 08:19:18 +0000 (08:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 10:47:22 +0000 (11:47 +0100)
commit8c04f51091410e5b3530088cc2d4335acfc0f603
tree852905cf4db42ac80acc5ed5c140f3fc396dcde2
parenta2c811499be383044404c4ff1eeedd68f88009cb
octeontx2-pf: Remove unnecessary synchronize_irq() before free_irq()

Calling synchronize_irq() right before free_irq() is quite useless. On one
hand the IRQ can easily fire again before free_irq() is entered, on the
other hand free_irq() itself calls synchronize_irq() internally (in a race
condition free way), before any state associated with the IRQ is freed.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c