Re: [PATCH 1/3] staging: comedi: ni_mio_common: remove unused variable in ni_ao_fifo_load()

2014-10-31 Thread Ian Abbott

On 30/10/14 18:37, H Hartley Sweeten wrote:

The local variable 'range' is set but never used. Remove it.

Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com
Cc: Ian Abbott abbo...@mev.co.uk
Cc: Greg Kroah-Hartman gre...@linuxfoundation.org
---
  drivers/staging/comedi/drivers/ni_mio_common.c | 3 ---
  1 file changed, 3 deletions(-)


Reviewed-by: Ian Abbott abbo...@mev.co.uk

--
-=( Ian Abbott @ MEV Ltd.E-mail: abbo...@mev.co.uk )=-
-=(  Web: http://www.mev.co.uk/  )=-
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 1/3] staging: comedi: ni_mio_common: remove unused variable in ni_ao_fifo_load()

2014-10-30 Thread H Hartley Sweeten
The local variable 'range' is set but never used. Remove it.

Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com
Cc: Ian Abbott abbo...@mev.co.uk
Cc: Greg Kroah-Hartman gre...@linuxfoundation.org
---
 drivers/staging/comedi/drivers/ni_mio_common.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/staging/comedi/drivers/ni_mio_common.c 
b/drivers/staging/comedi/drivers/ni_mio_common.c
index fd61d24..32236ef 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  0x;
/* 6711 only has 16 bit wide ao fifo */
-- 
2.0.3

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel