be2iscsi: Remove unnecessary synchronize_irq() before free_irq()
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 4 Mar 2016 10:15:06 +0000 (11:15 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Mar 2016 02:07:50 +0000 (21:07 -0500)
commite729b50307bfe9c541d08dd591c1dd6aef1999e8
treebbaf5ea7c19e744a92c847a2ef49caaa3313bede
parent4cd2459c066d2970241284b1fcdc5dca7ce6fbb2
be2iscsi: 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.

Patch was generated using the following semantic patch:
// <smpl>
@@
expression irq;
@@
-synchronize_irq(irq);
 free_irq(irq, ...);
// </smpl>

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/be2iscsi/be_main.c