staging: comedi: adv_pci1710: remove 'ai_buf_ptr' from private data
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 29 Apr 2014 18:08:35 +0000 (11:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 May 2014 00:02:41 +0000 (20:02 -0400)
This member of the private data is set to 0 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/adv_pci1710.c

index 5a329d5d20191342db49cf940f0b881105b4ce06..4c9454e82b3a008886561fd1a04c8ecf5e04d9b5 100644 (file)
@@ -302,7 +302,6 @@ struct pci1710_private {
        unsigned int i8254_osc_base;    /*  frequence of onboard oscilator */
        unsigned int ai_act_scan;       /*  how many scans we finished */
        unsigned int ai_act_chan;       /*  actual position in actual scan */
-       unsigned int ai_buf_ptr;        /*  data buffer ptr in samples */
        unsigned char ai_eos;   /*  1=EOS wake up */
        unsigned char ai_et;
        unsigned int ai_et_CntrlReg;
@@ -730,7 +729,6 @@ static int pci171x_ai_cancel(struct comedi_device *dev,
 
        devpriv->ai_act_scan = 0;
        s->async->cur_chan = 0;
-       devpriv->ai_buf_ptr = 0;
 
        return 0;
 }
@@ -973,7 +971,6 @@ static int pci171x_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
 
        devpriv->ai_act_scan = 0;
        s->async->cur_chan = 0;
-       devpriv->ai_buf_ptr = 0;
 
        devpriv->CntrlReg &= Control_CNT0;
        /*  don't we want wake up every scan?  devpriv->ai_eos=1; */