[DVB patch 09/54] core: dvb_demux: use INIT_LIST_HEAD

Johannes Stezenbach
2005-09-04T23:39:47Z

[-- Attachment #1: dvb-core-demux-use-INIT_LIST_HEAD.patch --]
[-- Type: text/plain, Size: 890 bytes --]

From: Andreas Oberritter <obi@linuxtv.org>

Use INIT_LIST_HEAD for frontend_list.

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>

drivers/media/dvb/dvb-core/dvb_demux.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

--- linux-2.6.13-git4.orig/drivers/media/dvb/dvb-core/dvb_demux.c 2005-09-04 22:27:57.000000000 +0200
+++ linux-2.6.13-git4/drivers/media/dvb/dvb-core/dvb_demux.c 2005-09-04 22:27:58.000000000 +0200
@@ -1188,9 +1188,9 @@ int dvb_dmx_init(struct dvb_demux *dvbde
dvbdemux->feed[i].state = DMX_STATE_FREE;
dvbdemux->feed[i].index = i;
}
- dvbdemux->frontend_list.next=
- dvbdemux->frontend_list.prev=
- &dvbdemux->frontend_list;
+
+ INIT_LIST_HEAD(&dvbdemux->frontend_list);
+
for (i=0; i<DMX_TS_PES_OTHER; i++) {
dvbdemux->pesfilter[i] = NULL;
dvbdemux->pids[i] = 0xffff;

--