Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a4ed3f9 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: mpc624: remove unnecessary printk noise



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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c1ce7f10
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;