aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-11-26 18:42:10 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-03 12:20:22 -0500
commit4a4ed3f96bc125f376d83f3d29aef6bb2780c10b (patch)
treee88e7f48733449df5e4d835e0675ac1bf60595ed
parentc1ce7f10543d616920a1eb772b993c7d7815d653 (diff)
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>
-rw-r--r--drivers/staging/comedi/drivers/mpc624.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/mpc624.c b/drivers/staging/comedi/drivers/mpc624.c
index b105dd98c358..01b281e83c61 100644
--- a/drivers/staging/comedi/drivers/mpc624.c
+++ b/drivers/staging/comedi/drivers/mpc624.c
@@ -177,11 +177,9 @@ static int mpc624_ai_rinsn(struct comedi_device *dev,
177 else 177 else
178 break; 178 break;
179 } 179 }
180 if (i == TIMEOUT) { 180 if (i == TIMEOUT)
181 printk(KERN_ERR "MPC624: timeout (%dms)\n", TIMEOUT);
182 data[n] = 0;
183 return -ETIMEDOUT; 181 return -ETIMEDOUT;
184 } 182
185 /* Start reading data */ 183 /* Start reading data */
186 data_in = 0; 184 data_in = 0;
187 data_out = devpriv->ulConvertionRate; 185 data_out = devpriv->ulConvertionRate;