staging: comedi: adl_pci9118: remove 'ai_buf_ptr' from private data
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>
This commit is contained in:
parent
681a89b3e0
commit
b8546f93d9
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue