summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-core/dvb_demux.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-10-10 05:37:39 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-10 13:34:33 -0300
commit7948261942ffdb35e274b8e1a0889601f45d4603 (patch)
tree92255677bdcaf97d57a84b2fb103c41ef9ac8367 /drivers/media/dvb/dvb-core/dvb_demux.c
parentc3e2a8e64cb2282a406ff6e63f7bd09eb6f61a1d (diff)
downloadop-kernel-dev-7948261942ffdb35e274b8e1a0889601f45d4603.zip
op-kernel-dev-7948261942ffdb35e274b8e1a0889601f45d4603.tar.gz
V4L/DVB (6311): dvb: Replace list_for_each+list_entry with list_for_each_entry
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-core/dvb_demux.c')
-rw-r--r--drivers/media/dvb/dvb-core/dvb_demux.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_demux.c b/drivers/media/dvb/dvb-core/dvb_demux.c
index cb6987f..7959020 100644
--- a/drivers/media/dvb/dvb-core/dvb_demux.c
+++ b/drivers/media/dvb/dvb-core/dvb_demux.c
@@ -373,13 +373,10 @@ static inline void dvb_dmx_swfilter_packet_type(struct dvb_demux_feed *feed,
static void dvb_dmx_swfilter_packet(struct dvb_demux *demux, const u8 *buf)
{
struct dvb_demux_feed *feed;
- struct list_head *pos, *head = &demux->feed_list;
u16 pid = ts_pid(buf);
int dvr_done = 0;
- list_for_each(pos, head) {
- feed = list_entry(pos, struct dvb_demux_feed, list_head);
-
+ list_for_each_entry(feed, &demux->feed_list, list_head) {
if ((feed->pid != pid) && (feed->pid != 0x2000))
continue;
OpenPOWER on IntegriCloud