staging: comedi: mpc624: remove unnecessary printk noise
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:42:10 +0000 (16:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:20:22 +0000 (09:20 -0800)
The ai read timeout will return -ETIMEDOUT. The printk is just added
noise. Remove it.

It's also not necessary to set data[n[ = 0 when the read timesout.
Remove that also.

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/mpc624.c

index b105dd9..01b281e 100644 (file)
@@ -177,11 +177,9 @@ static int mpc624_ai_rinsn(struct comedi_device *dev,
                        else
                                break;
                }
-               if (i == TIMEOUT) {
-                       printk(KERN_ERR "MPC624: timeout (%dms)\n", TIMEOUT);
-                       data[n] = 0;
+               if (i == TIMEOUT)
                        return -ETIMEDOUT;
-               }
+
                /*  Start reading data */
                data_in = 0;
                data_out = devpriv->ulConvertionRate;