]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: adl_pci9118: remove 'ai_buf_ptr' from private data
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 5 May 2014 16:35:39 +0000 (09:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:18:54 +0000 (21:18 +0900)
This member of the private data is set to 0 but never used. 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 89e6b92772502ccf2adca981072b0a848593460d..dd1cd6be66eca41edb4ac55b817e5bebdec001a0 100644 (file)
@@ -324,7 +324,6 @@ struct pci9118_private {
        char ai_neverending;            /* we do unlimited AI */
        unsigned int ai_do;             /* what do AI? 0=nothing, 1 to 4 mode */
        unsigned int ai_act_scan;       /* how many scans we finished */
-       unsigned int ai_buf_ptr;        /* data buffer ptr in samples */
        unsigned int ai_n_realscanlen;  /*
                                         * what we must transfer for one
                                         * outgoing scan include front/back adds
@@ -875,7 +874,6 @@ static int pci9118_ai_cancel(struct comedi_device *dev,
        devpriv->ai_act_dmapos = 0;
        s->async->cur_chan = 0;
        s->async->inttrig = NULL;
-       devpriv->ai_buf_ptr = 0;
        devpriv->ai_neverending = 0;
        devpriv->dma_actbuf = 0;
 
@@ -1797,7 +1795,6 @@ static int pci9118_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
        devpriv->ai_act_scan = 0;
        devpriv->ai_act_dmapos = 0;
        s->async->cur_chan = 0;
-       devpriv->ai_buf_ptr = 0;
 
        if (devpriv->usedma)
                ret = pci9118_ai_docmd_dma(dev, s);