staging: comedi: cb_pcimdas: remove unnecessary printk noise
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:41:42 +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/cb_pcimdas.c

index da669501b533022f52f37869009801c154cf142b..57295d189ff6a22b101877e307a5dc477c8c5e62 100644 (file)
@@ -142,10 +142,9 @@ static int cb_pcimdas_ai_rinsn(struct comedi_device *dev,
                        if (!busy)
                                break;
                }
-               if (i == TIMEOUT) {
-                       printk("timeout\n");
+               if (i == TIMEOUT)
                        return -ETIMEDOUT;
-               }
+
                /* read data */
                data[n] = inw(dev->iobase + 0);
        }