]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Remove unnecessary synchronize_irq() before free_irq()
authorMinghao Chi <chi.minghao@zte.com.cn>
Wed, 18 May 2022 21:31:11 +0000 (14:31 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 21 Jun 2022 20:50:38 +0000 (13:50 -0700)
commit73349c1f7d3e4aec2a6efdcd3bb1fd257399f2b6
treedf91d230848dd9fb5602c9002f3b9995731aab3d
parent39c123243a00e407ecd1131a4fd6898a0f67757f
i40e: 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>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c