Skip to content

Commit

Permalink
[PATCH] uml: use LIST_HEAD where possible
Browse files Browse the repository at this point in the history
A couple of list_head declarations can be improved through the use of
LIST_HEAD().

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Feb 11, 2007
1 parent c862fc3 commit c59bce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/um/drivers/mconsole_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ struct unplugged_pages {

static DECLARE_MUTEX(plug_mem_mutex);
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 mem_config(char *str, char **error_out)
Expand Down
2 changes: 1 addition & 1 deletion arch/um/drivers/port_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static int port_accept(struct port_list *port)
}

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)
{
Expand Down

0 comments on commit c59bce6

Please sign in to comment.