staging: comedi: ni_mio_common: remove unused variable in ni_ao_fifo_load()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 31 Oct 2014 16:49:30 +0000 (09:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Nov 2014 00:31:24 +0000 (16:31 -0800)
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>
drivers/staging/comedi/drivers/ni_mio_common.c

index fd61d24bc3a41c36878c901fc27d8ea4aaa87a78..32236ef587f539b0fd20e819de358dee91719dcf 100644 (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 */