[PATCH] dvb: pluto2: Removed unavoidable error message and related code
authorAndreas Oberritter <obi@linuxtv.org>
Wed, 9 Nov 2005 05:35:14 +0000 (21:35 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:01 +0000 (07:56 -0800)
Removed unavoidable error message and related code.

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/pluto2/pluto2.c

index 85b437bbddcdaed624b6a1389dafd982b5560c07..bbebd1c4caca575fb7cd0890e30105bd68ae7b34 100644 (file)
@@ -286,15 +286,10 @@ static void pluto_dma_end(struct pluto *pluto, unsigned int nbpackets)
         *     although one packet has been transfered.
         */
        if ((nbpackets == 0) || (nbpackets > TS_DMA_PACKETS)) {
-               unsigned int i = 0, valid;
+               unsigned int i = 0;
                while (pluto->dma_buf[i] == 0x47)
                        i += 188;
-               valid = i / 188;
-               if (nbpackets != valid) {
-                       dev_err(&pluto->pdev->dev, "nbpackets=%u valid=%u\n",
-                                       nbpackets, valid);
-                       nbpackets = valid;
-               }
+               nbpackets = i / 188;
        }
 
        dvb_dmx_swfilter_packets(&pluto->demux, pluto->dma_buf, nbpackets);