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>
This commit is contained in:
committed by
Linus Torvalds
parent
a18b630d1b
commit
bed9759b2e
@@ -306,7 +306,7 @@ struct hvcs_struct {
|
||||
/* Required to back map a kref to its containing object */
|
||||
#define from_kref(k) container_of(k, struct hvcs_struct, kref)
|
||||
|
||||
static struct list_head hvcs_structs = LIST_HEAD_INIT(hvcs_structs);
|
||||
static LIST_HEAD(hvcs_structs);
|
||||
static DEFINE_SPINLOCK(hvcs_structs_lock);
|
||||
|
||||
static void hvcs_unthrottle(struct tty_struct *tty);
|
||||
|
Reference in New Issue
Block a user