aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-11-26 18:41:44 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-03 12:20:20 -0500
commit65e2618fd3bbe9c3776048212dc15ddc7fe61451 (patch)
treeae9902cbe8b2a7b18442ca91552ac8e32a1878a9
parent729988507680b2ce934bce61d9ce0ea7b235914c (diff)
staging: comedi: dmm32at: remove unnecessary printk noise
A timeout will return -ETIMEDOUT. The printks are just added noise. Remove them. 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/dmm32at.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/drivers/staging/comedi/drivers/dmm32at.c b/drivers/staging/comedi/drivers/dmm32at.c
index bd192de319d3..f057d7995bad 100644
--- a/drivers/staging/comedi/drivers/dmm32at.c
+++ b/drivers/staging/comedi/drivers/dmm32at.c
@@ -199,10 +199,8 @@ static int dmm32at_ai_rinsn(struct comedi_device *dev,
199 if ((status & DMM32AT_STATUS) == 0) 199 if ((status & DMM32AT_STATUS) == 0)
200 break; 200 break;
201 } 201 }
202 if (i == 40000) { 202 if (i == 40000)
203 printk(KERN_WARNING "dmm32at: timeout\n");
204 return -ETIMEDOUT; 203 return -ETIMEDOUT;
205 }
206 204
207 /* convert n samples */ 205 /* convert n samples */
208 for (n = 0; n < insn->n; n++) { 206 for (n = 0; n < insn->n; n++) {
@@ -214,10 +212,8 @@ static int dmm32at_ai_rinsn(struct comedi_device *dev,
214 if ((status & DMM32AT_STATUS) == 0) 212 if ((status & DMM32AT_STATUS) == 0)
215 break; 213 break;
216 } 214 }
217 if (i == 40000) { 215 if (i == 40000)
218 printk(KERN_WARNING "dmm32at: timeout\n");
219 return -ETIMEDOUT; 216 return -ETIMEDOUT;
220 }
221 217
222 /* read data */ 218 /* read data */
223 lsb = inb(dev->iobase + DMM32AT_AILSB); 219 lsb = inb(dev->iobase + DMM32AT_AILSB);
@@ -453,10 +449,8 @@ static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
453 if ((status & DMM32AT_STATUS) == 0) 449 if ((status & DMM32AT_STATUS) == 0)
454 break; 450 break;
455 } 451 }
456 if (i == 40000) { 452 if (i == 40000)
457 printk(KERN_WARNING "dmm32at: timeout\n");
458 return -ETIMEDOUT; 453 return -ETIMEDOUT;
459 }
460 454
461 if (devpriv->ai_scans_left > 1) { 455 if (devpriv->ai_scans_left > 1) {
462 /* start the clock and enable the interrupts */ 456 /* start the clock and enable the interrupts */
@@ -567,10 +561,9 @@ static int dmm32at_ao_winsn(struct comedi_device *dev,
567 if ((status & DMM32AT_DACBUSY) == 0) 561 if ((status & DMM32AT_DACBUSY) == 0)
568 break; 562 break;
569 } 563 }
570 if (i == 40000) { 564 if (i == 40000)
571 printk(KERN_WARNING "dmm32at: timeout\n");
572 return -ETIMEDOUT; 565 return -ETIMEDOUT;
573 } 566
574 /* dummy read to update trigger the output */ 567 /* dummy read to update trigger the output */
575 status = inb(dev->iobase + DMM32AT_DACMSB); 568 status = inb(dev->iobase + DMM32AT_DACMSB);
576 569