staging: comedi: dt2814: remove unnecessary printk noise
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:41:53 +0000 (16:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:20:20 +0000 (09:20 -0800)
The ai read timeout will return -ETIMEDOUT. The printk is just added
noise. 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/dt2814.c

index 4b414783384318f72a873fadfdd41e4b30a129ff..90defd51c99887419facf30a58434e2310e1e966 100644 (file)
@@ -85,10 +85,8 @@ static int dt2814_ai_insn_read(struct comedi_device *dev,
                        if (status & DT2814_FINISH)
                                break;
                }
-               if (i >= DT2814_TIMEOUT) {
-                       printk(KERN_INFO "dt2814: status: %02x\n", status);
+               if (i >= DT2814_TIMEOUT)
                        return -ETIMEDOUT;
-               }
 
                hi = inb(dev->iobase + DT2814_DATA);
                lo = inb(dev->iobase + DT2814_DATA);