]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: at_xdmac: Remove unnecessary synchronize_irq() before free_irq()
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 21 Nov 2015 11:09:47 +0000 (12:09 +0100)
committerVinod Koul <vinod.koul@intel.com>
Sat, 5 Dec 2015 10:26:27 +0000 (15:56 +0530)
commit9edf6d6504615e8f3c266c82ca3705a6b31c56e6
treef16f04d16f3c6105490fef741052cb1863ab7407
parentbefa85a9a22df1b24d347fe9ebb1a85199ba4d23
dmaengine: at_xdmac: 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>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c