Commit 6573dd75 authored by Andreas Oberritter's avatar Andreas Oberritter Committed by Linus Torvalds

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

Removed unavoidable error message and related code.
Signed-off-by: default avatarAndreas Oberritter <obi@linuxtv.org>
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 634623d3
...@@ -286,15 +286,10 @@ static void pluto_dma_end(struct pluto *pluto, unsigned int nbpackets) ...@@ -286,15 +286,10 @@ static void pluto_dma_end(struct pluto *pluto, unsigned int nbpackets)
* although one packet has been transfered. * although one packet has been transfered.
*/ */
if ((nbpackets == 0) || (nbpackets > TS_DMA_PACKETS)) { if ((nbpackets == 0) || (nbpackets > TS_DMA_PACKETS)) {
unsigned int i = 0, valid; unsigned int i = 0;
while (pluto->dma_buf[i] == 0x47) while (pluto->dma_buf[i] == 0x47)
i += 188; i += 188;
valid = i / 188; nbpackets = i / 188;
if (nbpackets != valid) {
dev_err(&pluto->pdev->dev, "nbpackets=%u valid=%u\n",
nbpackets, valid);
nbpackets = valid;
}
} }
dvb_dmx_swfilter_packets(&pluto->demux, pluto->dma_buf, nbpackets); dvb_dmx_swfilter_packets(&pluto->demux, pluto->dma_buf, nbpackets);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment