Commit a4afd658 authored by Andreas Oberritter's avatar Andreas Oberritter Committed by Mauro Carvalho Chehab

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: default avatarAndreas Oberritter <obi@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 1cb662a3
...@@ -425,13 +425,9 @@ no_dvb_demux_tscheck: ...@@ -425,13 +425,9 @@ no_dvb_demux_tscheck:
if ((DVR_FEED(feed)) && (dvr_done++)) if ((DVR_FEED(feed)) && (dvr_done++))
continue; continue;
if (feed->pid == pid) { if (feed->pid == pid)
dvb_dmx_swfilter_packet_type(feed, buf); dvb_dmx_swfilter_packet_type(feed, buf);
if (DVR_FEED(feed)) else if (feed->pid == 0x2000)
continue;
}
if (feed->pid == 0x2000)
feed->cb.ts(buf, 188, NULL, 0, &feed->feed.ts, DMX_OK); feed->cb.ts(buf, 188, NULL, 0, &feed->feed.ts, DMX_OK);
} }
} }
......
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