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)
commitd887ae3247e022183f244cb325dca1dfbd0a9ed0
tree852905cf4db42ac80acc5ed5c140f3fc396dcde2
parentb321dfafb0b99e285d14bcaae00b4f9093556eb6
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