staging: comedi: plx9080.h: remove unnecessary printk noise
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:42:13 +0000 (16:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:20:22 +0000 (09:20 -0800)
The timeouts 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>
drivers/staging/comedi/drivers/plx9080.h

index 0d254a1b78a77f73b09ccdf106834f0cbf6e12c9..55e3c2e2bc5292622ab32294361ce191531c240a 100644 (file)
@@ -402,12 +402,9 @@ static inline int plx9080_abort_dma(void __iomem *iobase, unsigned int channel)
                udelay(1);
                dma_status = readb(dma_cs_addr);
        }
-       if (i == timeout) {
-               printk
-                   ("plx9080: cancel() timed out waiting for dma %i done clear\n",
-                    channel);
+       if (i == timeout)
                return -ETIMEDOUT;
-       }
+
        /*  disable and abort channel */
        writeb(PLX_DMA_ABORT_BIT, dma_cs_addr);
        /*  wait for dma done bit */
@@ -416,12 +413,8 @@ static inline int plx9080_abort_dma(void __iomem *iobase, unsigned int channel)
                udelay(1);
                dma_status = readb(dma_cs_addr);
        }
-       if (i == timeout) {
-               printk
-                   ("plx9080: cancel() timed out waiting for dma %i done set\n",
-                    channel);
+       if (i == timeout)
                return -ETIMEDOUT;
-       }
 
        return 0;
 }
This page took 0.025292 seconds and 5 git commands to generate.