From 8bc00c04d87ee151fb8fe18ed7e7af8c785843f2 Mon Sep 17 00:00:00 2001 From: Vineeth Vijayan Date: Wed, 31 Mar 2021 15:43:40 +0200 Subject: s390/sclp: use LIST_HEAD for Initialization For static initialization of list_head variable, use LIST_HEAD instead of INIT_LIST_HEAD function. Suggested-by: Julian Wiedmann Signed-off-by: Vineeth Vijayan Signed-off-by: Heiko Carstens --- drivers/s390/char/sclp_con.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'drivers/s390/char/sclp_con.c') diff --git a/drivers/s390/char/sclp_con.c b/drivers/s390/char/sclp_con.c index f5e34e1b6c9e..9b852a47ccc1 100644 --- a/drivers/s390/char/sclp_con.c +++ b/drivers/s390/char/sclp_con.c @@ -28,9 +28,9 @@ /* Lock to guard over changes to global variables */ static DEFINE_SPINLOCK(sclp_con_lock); /* List of free pages that can be used for console output buffering */ -static struct list_head sclp_con_pages; +static LIST_HEAD(sclp_con_pages); /* List of full struct sclp_buffer structures ready for output */ -static struct list_head sclp_con_outqueue; +static LIST_HEAD(sclp_con_outqueue); /* Pointer to current console buffer */ static struct sclp_buffer *sclp_conbuf; /* Timer for delayed output of console messages */ @@ -323,12 +323,10 @@ sclp_console_init(void) if (rc) return rc; /* Allocate pages for output buffering */ - INIT_LIST_HEAD(&sclp_con_pages); for (i = 0; i < sclp_console_pages; i++) { page = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); list_add_tail(page, &sclp_con_pages); } - INIT_LIST_HEAD(&sclp_con_outqueue); sclp_conbuf = NULL; timer_setup(&sclp_con_timer, sclp_console_timeout, 0); -- cgit v1.2.3