From: H Hartley Sweeten Date: Fri, 31 Oct 2014 16:49:30 +0000 (-0700) Subject: staging: comedi: ni_mio_common: remove unused variable in ni_ao_fifo_load() X-Git-Tag: firefly_0821_release~176^2~2665^2~462 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c1b617e017f858505ce639a8dee4d096fbcb7b6b;p=firefly-linux-kernel-4.4.55.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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_mio_common.c b/drivers/staging/comedi/drivers/ni_mio_common.c index fd61d24bc3a4..32236ef587f5 100644 --- a/drivers/staging/comedi/drivers/ni_mio_common.c +++ b/drivers/staging/comedi/drivers/ni_mio_common.c @@ -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 */