Skip to content

Commit

Permalink
[IUCV]: use LIST_HEAD instead of LIST_HEAD_INIT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Denis Cheng authored and David S. Miller committed Jan 28, 2008
1 parent df01812 commit b5e7833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/iucv/iucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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. */
Expand Down

0 comments on commit b5e7833

Please sign in to comment.