]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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 b105dd98c358f6b219c14a3f3bb4f1ac529b5d6d..01b281e83c61c920001c0ab57d500549a86711cb 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;