]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IUCV]: use LIST_HEAD instead of LIST_HEAD_INIT
authorDenis Cheng <crquan@gmail.com>
Fri, 7 Dec 2007 08:51:45 +0000 (00:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:56:54 +0000 (14:56 -0800)
these three list_head are all local variables, but can also use
LIST_HEAD.

Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/iucv.c

index 7698f6c459d6006f2ed587ec00c54c84a1901777..f13fe8821cbd7bf7817c6eacb85709aaca134492 100644 (file)
@@ -1492,7 +1492,7 @@ static void iucv_tasklet_fn(unsigned long ignored)
                [0x08] = iucv_message_pending,
                [0x09] = iucv_message_pending,
        };
-       struct list_head task_queue = LIST_HEAD_INIT(task_queue);
+       LIST_HEAD(task_queue);
        struct iucv_irq_list *p, *n;
 
        /* Serialize tasklet, iucv_path_sever and iucv_path_connect. */
@@ -1526,7 +1526,7 @@ static void iucv_tasklet_fn(unsigned long ignored)
 static void iucv_work_fn(struct work_struct *work)
 {
        typedef void iucv_irq_fn(struct iucv_irq_data *);
-       struct list_head work_queue = LIST_HEAD_INIT(work_queue);
+       LIST_HEAD(work_queue);
        struct iucv_irq_list *p, *n;
 
        /* Serialize tasklet, iucv_path_sever and iucv_path_connect. */