From: H Hartley Sweeten Date: Tue, 26 Nov 2013 23:41:53 +0000 (-0700) Subject: staging: comedi: dt2814: remove unnecessary printk noise X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f0256161c234f2377f491b0b5e12b5d5f5d45892;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- 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);