diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-11-26 16:41:53 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-03 09:20:20 -0800 |
commit | f0256161c234f2377f491b0b5e12b5d5f5d45892 (patch) | |
tree | 60384e828e16b4c115d42707727d07a64bd978af | |
parent | d7bfe8e845ad03a48bc0e988cddedb536e296144 (diff) |
staging: comedi: dt2814: remove unnecessary printk noise
The ai read timeout will return -ETIMEDOUT. The printk is just added
noise. Remove it.
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/dt2814.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/dt2814.c b/drivers/staging/comedi/drivers/dt2814.c index 4b4147833843..90defd51c998 100644 --- a/drivers/staging/comedi/drivers/dt2814.c +++ b/drivers/staging/comedi/drivers/dt2814.c @@ -85,10 +85,8 @@ static int dt2814_ai_insn_read(struct comedi_device *dev, if (status & DT2814_FINISH) break; } - if (i >= DT2814_TIMEOUT) { - printk(KERN_INFO "dt2814: status: %02x\n", status); + if (i >= DT2814_TIMEOUT) return -ETIMEDOUT; - } hi = inb(dev->iobase + DT2814_DATA); lo = inb(dev->iobase + DT2814_DATA); |