Commit c59bce62 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

[PATCH] uml: use LIST_HEAD where possible

A couple of list_head declarations can be improved through the use of
LIST_HEAD().
Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c862fc32
...@@ -371,7 +371,7 @@ struct unplugged_pages { ...@@ -371,7 +371,7 @@ struct unplugged_pages {
static DECLARE_MUTEX(plug_mem_mutex); static DECLARE_MUTEX(plug_mem_mutex);
static unsigned long long unplugged_pages_count = 0; static unsigned long long unplugged_pages_count = 0;
static struct list_head unplugged_pages = LIST_HEAD_INIT(unplugged_pages); static LIST_HEAD(unplugged_pages);
static int unplug_index = UNPLUGGED_PER_PAGE; static int unplug_index = UNPLUGGED_PER_PAGE;
static int mem_config(char *str, char **error_out) static int mem_config(char *str, char **error_out)
......
...@@ -130,7 +130,7 @@ static int port_accept(struct port_list *port) ...@@ -130,7 +130,7 @@ static int port_accept(struct port_list *port)
} }
static DECLARE_MUTEX(ports_sem); static DECLARE_MUTEX(ports_sem);
static struct list_head ports = LIST_HEAD_INIT(ports); static LIST_HEAD(ports);
void port_work_proc(struct work_struct *unused) void port_work_proc(struct work_struct *unused)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment