staging: comedi: adl_pci9118: simplify interrupt_pci9118_ai_dma() a bit
authorIan Abbott <abbotti@mev.co.uk>
Thu, 27 Nov 2014 11:37:17 +0000 (11:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2014 00:31:20 +0000 (16:31 -0800)
commitac33c20dadf927b7fc96292810007633805a6fe2
treeac8cb58fc5afda9d25cab7d8238de69a223c0476
parent99eff12f8a28762ac5d96158f0e344d64f978d28
staging: comedi: adl_pci9118: simplify interrupt_pci9118_ai_dma() a bit

Eliminate the `next_dma_buf` variable in `interrupt_pci9118_ai_dma()`.
It holds the next value of `devpriv->dma_actbuf` when double buffering
is used, but we can just set that to the next value directly at the
point where the buffers are switched as the old value is not used
anywhere else.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci9118.c