From: Andreas Oberritter Date: Tue, 14 Jul 2009 23:48:37 +0000 (-0300) Subject: V4L/DVB (12276): Remove a useless check from dvb_dmx_swfilter_packet() X-Git-Tag: v2.6.32-rc1~679^2~172 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4afd65870188b872ec9b5cc0330f7c818c4c3a4;p=platform%2Fkernel%2Flinux-stable.git V4L/DVB (12276): Remove a useless check from dvb_dmx_swfilter_packet() 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. Signed-off-by: Andreas Oberritter Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/dvb-core/dvb_demux.c b/drivers/media/dvb/dvb-core/dvb_demux.c index cfe2768..eef6d36 100644 --- a/drivers/media/dvb/dvb-core/dvb_demux.c +++ b/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); } }