mirror of https://gitee.com/openkylin/linux.git
staging: comedi: ni_mio_common: remove unused variable in ni_ao_fifo_load()
The local variable 'range' is set 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
cf5d2af683
commit
c1b617e017
|
@ -1131,14 +1131,11 @@ static void ni_ao_fifo_load(struct comedi_device *dev,
|
|||
int i;
|
||||
unsigned short d;
|
||||
u32 packed_data;
|
||||
int range;
|
||||
|
||||
chan = async->cur_chan;
|
||||
for (i = 0; i < n; i++) {
|
||||
comedi_buf_read_samples(s, &d, 1);
|
||||
|
||||
range = CR_RANGE(cmd->chanlist[chan]);
|
||||
|
||||
if (devpriv->is_6xxx) {
|
||||
packed_data = d & 0xffff;
|
||||
/* 6711 only has 16 bit wide ao fifo */
|
||||
|
|
Loading…
Reference in New Issue