]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[PATCH] uml: use LIST_HEAD where possible
authorJeff Dike <jdike@addtoit.com>
Sat, 10 Feb 2007 09:44:04 +0000 (01:44 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:22 +0000 (10:51 -0800)
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>
arch/um/drivers/mconsole_kern.c
arch/um/drivers/port_kern.c

index b4dbd102da0ee779cfbbe42c5f87a28872622f2e..a5a683d6fc5cbe1c0e6b610910b48dc90728d105 100644 (file)
@@ -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)
index 4dd7d8a11db2cf8dba4ce42b86d6411270ad3d6a..1c8efd95c421946ab5e7e56db518395c1847378b 100644 (file)
@@ -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)
 {