Commit c1b617e0 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cf5d2af6
...@@ -1131,14 +1131,11 @@ static void ni_ao_fifo_load(struct comedi_device *dev, ...@@ -1131,14 +1131,11 @@ static void ni_ao_fifo_load(struct comedi_device *dev,
int i; int i;
unsigned short d; unsigned short d;
u32 packed_data; u32 packed_data;
int range;
chan = async->cur_chan; chan = async->cur_chan;
for (i = 0; i < n; i++) { for (i = 0; i < n; i++) {
comedi_buf_read_samples(s, &d, 1); comedi_buf_read_samples(s, &d, 1);
range = CR_RANGE(cmd->chanlist[chan]);
if (devpriv->is_6xxx) { if (devpriv->is_6xxx) {
packed_data = d & 0xffff; packed_data = d & 0xffff;
/* 6711 only has 16 bit wide ao fifo */ /* 6711 only has 16 bit wide ao fifo */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment