summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-core
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@linuxtv.org>2009-07-15 01:48:37 +0200
committerAndreas Oberritter <obi@linuxtv.org>2009-07-15 01:48:37 +0200
commit02d22c9b0bfab80d3180aac81f95ca44084fc116 (patch)
treef193da876e0724d7916473398b2f7c6fbc214cba /linux/drivers/media/dvb/dvb-core
parent9a656496a57cf7f0b434af1b04d02c20e3976cbc (diff)
downloadmediapointer-dvb-s2-02d22c9b0bfab80d3180aac81f95ca44084fc116.tar.gz
mediapointer-dvb-s2-02d22c9b0bfab80d3180aac81f95ca44084fc116.tar.bz2
Remove a useless check from dvb_dmx_swfilter_packet()
From: Andreas Oberritter <obi@linuxtv.org> Values for 'pid' range from 0 to 0x1fff. Therefore 'feed->pid' can never be equal to both 'pid' and 0x2000. This makes the continue statement have no effect. Priority: normal Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_demux.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_demux.c b/linux/drivers/media/dvb/dvb-core/dvb_demux.c
index cfe2768d2..eef6d3616 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_demux.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_demux.c
@@ -425,13 +425,9 @@ no_dvb_demux_tscheck:
if ((DVR_FEED(feed)) && (dvr_done++))
continue;
- if (feed->pid == pid) {
+ if (feed->pid == pid)
dvb_dmx_swfilter_packet_type(feed, buf);
- if (DVR_FEED(feed))
- continue;
- }
-
- if (feed->pid == 0x2000)
+ else if (feed->pid == 0x2000)
feed->cb.ts(buf, 188, NULL, 0, &feed->feed.ts, DMX_OK);
}
}