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:
H Hartley Sweeten 2014-10-31 09:49:30 -07:00 committed by Greg Kroah-Hartman
parent cf5d2af683
commit c1b617e017
1 changed files with 0 additions and 3 deletions

View File

@ -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 */