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: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c1ce7f1054
commit
4a4ed3f96b
1 changed files with 2 additions and 4 deletions
|
@ -177,11 +177,9 @@ static int mpc624_ai_rinsn(struct comedi_device *dev,
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i == TIMEOUT) {
|
if (i == TIMEOUT)
|
||||||
printk(KERN_ERR "MPC624: timeout (%dms)\n", TIMEOUT);
|
|
||||||
data[n] = 0;
|
|
||||||
return -ETIMEDOUT;
|
return -ETIMEDOUT;
|
||||||
}
|
|
||||||
/* Start reading data */
|
/* Start reading data */
|
||||||
data_in = 0;
|
data_in = 0;
|
||||||
data_out = devpriv->ulConvertionRate;
|
data_out = devpriv->ulConvertionRate;
|
||||||
|
|
Loading…
Add table
Reference in a new issue