[PATCH 07/37] dvb: pluto2: Removed unavoidable error message and related code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





From: Andreas Oberritter <[email protected]>

Removed unavoidable error message and related code.

Signed-off-by: Andreas Oberritter <[email protected]>
Signed-off-by: Michael Krufky <[email protected]>

 drivers/media/dvb/pluto2/pluto2.c |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

--- linux-2.6.14-git3.orig/drivers/media/dvb/pluto2/pluto2.c
+++ linux-2.6.14-git3/drivers/media/dvb/pluto2/pluto2.c
@@ -286,15 +286,10 @@
 	 *     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);



[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux