aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/hvcs.c
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2008-02-06 04:37:35 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-06 13:41:07 -0500
commitbed9759b2e6bd938097389f6bd2ac8d622fa3884 (patch)
tree5586289865b6d15a4ef5f82966684a651a8bcf0d /drivers/char/hvcs.c
parenta18b630d1becdf1a087de644fea080c1977bcf10 (diff)
drivers/char: use LIST_HEAD instead of LIST_HEAD_INIT
single list_head variable initialized with LIST_HEAD_INIT could almost always can be replaced with LIST_HEAD declaration, this shrinks the code and looks better. Signed-off-by: Denis Cheng <crquan@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Corey Minyard <minyard@acm.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/hvcs.c')
-rw-r--r--drivers/char/hvcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hvcs.c b/drivers/char/hvcs.c
index 3402def22007..786d518e9477 100644
--- a/drivers/char/hvcs.c
+++ b/drivers/char/hvcs.c
@@ -306,7 +306,7 @@ struct hvcs_struct {
306/* Required to back map a kref to its containing object */ 306/* Required to back map a kref to its containing object */
307#define from_kref(k) container_of(k, struct hvcs_struct, kref) 307#define from_kref(k) container_of(k, struct hvcs_struct, kref)
308 308
309static struct list_head hvcs_structs = LIST_HEAD_INIT(hvcs_structs); 309static LIST_HEAD(hvcs_structs);
310static DEFINE_SPINLOCK(hvcs_structs_lock); 310static DEFINE_SPINLOCK(hvcs_structs_lock);
311 311
312static void hvcs_unthrottle(struct tty_struct *tty); 312static void hvcs_unthrottle(struct tty_struct *tty);