mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
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>
This commit is contained in:
parent
7299885076
commit
65e2618fd3
@ -199,10 +199,8 @@ static int dmm32at_ai_rinsn(struct comedi_device *dev,
|
|||||||
if ((status & DMM32AT_STATUS) == 0)
|
if ((status & DMM32AT_STATUS) == 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i == 40000) {
|
if (i == 40000)
|
||||||
printk(KERN_WARNING "dmm32at: timeout\n");
|
|
||||||
return -ETIMEDOUT;
|
return -ETIMEDOUT;
|
||||||
}
|
|
||||||
|
|
||||||
/* convert n samples */
|
/* convert n samples */
|
||||||
for (n = 0; n < insn->n; n++) {
|
for (n = 0; n < insn->n; n++) {
|
||||||
@ -214,10 +212,8 @@ static int dmm32at_ai_rinsn(struct comedi_device *dev,
|
|||||||
if ((status & DMM32AT_STATUS) == 0)
|
if ((status & DMM32AT_STATUS) == 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i == 40000) {
|
if (i == 40000)
|
||||||
printk(KERN_WARNING "dmm32at: timeout\n");
|
|
||||||
return -ETIMEDOUT;
|
return -ETIMEDOUT;
|
||||||
}
|
|
||||||
|
|
||||||
/* read data */
|
/* read data */
|
||||||
lsb = inb(dev->iobase + DMM32AT_AILSB);
|
lsb = inb(dev->iobase + DMM32AT_AILSB);
|
||||||
@ -453,10 +449,8 @@ static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
|
|||||||
if ((status & DMM32AT_STATUS) == 0)
|
if ((status & DMM32AT_STATUS) == 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i == 40000) {
|
if (i == 40000)
|
||||||
printk(KERN_WARNING "dmm32at: timeout\n");
|
|
||||||
return -ETIMEDOUT;
|
return -ETIMEDOUT;
|
||||||
}
|
|
||||||
|
|
||||||
if (devpriv->ai_scans_left > 1) {
|
if (devpriv->ai_scans_left > 1) {
|
||||||
/* start the clock and enable the interrupts */
|
/* start the clock and enable the interrupts */
|
||||||
@ -567,10 +561,9 @@ static int dmm32at_ao_winsn(struct comedi_device *dev,
|
|||||||
if ((status & DMM32AT_DACBUSY) == 0)
|
if ((status & DMM32AT_DACBUSY) == 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i == 40000) {
|
if (i == 40000)
|
||||||
printk(KERN_WARNING "dmm32at: timeout\n");
|
|
||||||
return -ETIMEDOUT;
|
return -ETIMEDOUT;
|
||||||
}
|
|
||||||
/* dummy read to update trigger the output */
|
/* dummy read to update trigger the output */
|
||||||
status = inb(dev->iobase + DMM32AT_DACMSB);
|
status = inb(dev->iobase + DMM32AT_DACMSB);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user