]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1284234e44be99516c719a33a67e8a8453cbb34d
treeac8cb58fc5afda9d25cab7d8238de69a223c0476
parent6233369d5ac96ffb60432860a58e6a5131a76b8f
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