[S390] 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> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:

committed by
Martin Schwidefsky

parent
c654749777
commit
c11ca97ee9
@@ -66,7 +66,7 @@ struct raw3270 {
|
||||
static DEFINE_MUTEX(raw3270_mutex);
|
||||
|
||||
/* List of 3270 devices. */
|
||||
static struct list_head raw3270_devices = LIST_HEAD_INIT(raw3270_devices);
|
||||
static LIST_HEAD(raw3270_devices);
|
||||
|
||||
/*
|
||||
* Flag to indicate if the driver has been registered. Some operations
|
||||
@@ -1210,7 +1210,7 @@ struct raw3270_notifier {
|
||||
void (*notifier)(int, int);
|
||||
};
|
||||
|
||||
static struct list_head raw3270_notifier = LIST_HEAD_INIT(raw3270_notifier);
|
||||
static LIST_HEAD(raw3270_notifier);
|
||||
|
||||
int raw3270_register_notifier(void (*notifier)(int, int))
|
||||
{
|
||||
|
Reference in New Issue
Block a user