[PATCH] dvb: core: dvb_demux: use INIT_LIST_HEAD
authorAndreas Oberritter <obi@linuxtv.org>
Fri, 9 Sep 2005 20:02:26 +0000 (13:02 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:57:37 +0000 (13:57 -0700)
Use INIT_LIST_HEAD for frontend_list.

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/dvb-core/dvb_demux.c

index b9cb671..528ca46 100644 (file)
@@ -1188,9 +1188,9 @@ int dvb_dmx_init(struct dvb_demux *dvbdemux)
                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;