]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: comedi: adl_pci9118: remove 'dmabuf_used_size' from private data
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Sep 2014 20:05:37 +0000 (13:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:34:24 +0000 (14:34 -0700)
This member of the private data is set but never used. Just remove it.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci9118.c

index 98f2581a170cf7fc7ef5b2c292b75d4d88689003..7de8732bf9a52ad108575ddff7fb467de7885319 100644 (file)
@@ -251,7 +251,6 @@ struct pci9118_private {
                                                 * which size we may now use
                                                 * for transfer
                                                 */
-       unsigned int dmabuf_used_size[2];       /* which size was truly used */
        int dmabuf_pages[2];                    /* number of pages in buffer */
        unsigned char exttrg_users;             /*
                                                 * bit field of external trigger
@@ -701,8 +700,6 @@ static void interrupt_pci9118_ai_dma(struct comedi_device *dev,
                                         */
                next_dma_buf = 1 - devpriv->dma_actbuf;
                pci9118_amcc_setup_dma(dev, next_dma_buf);
-               devpriv->dmabuf_used_size[next_dma_buf] =
-                   devpriv->dmabuf_use_size[next_dma_buf];
                if (devpriv->ai_do == 4)
                        interrupt_pci9118_ai_mode4_switch(dev);
        }