diff options
author | Denis Cheng <crquan@gmail.com> | 2008-01-26 08:11:13 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-01-26 08:11:21 -0500 |
commit | c11ca97ee9d2ed593ab7b5523def7787b46f398f (patch) | |
tree | 16aef050d593095b1d3e3f176412a82eb88dd13f /drivers/s390/char/raw3270.c | |
parent | c654749777e8624187b53fbb94cea91a7bf74347 (diff) |
[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>
Diffstat (limited to 'drivers/s390/char/raw3270.c')
-rw-r--r-- | drivers/s390/char/raw3270.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/char/raw3270.c b/drivers/s390/char/raw3270.c index 8d1c64a24dec..0d98f1ff2edd 100644 --- a/drivers/s390/char/raw3270.c +++ b/drivers/s390/char/raw3270.c | |||
@@ -66,7 +66,7 @@ struct raw3270 { | |||
66 | static DEFINE_MUTEX(raw3270_mutex); | 66 | static DEFINE_MUTEX(raw3270_mutex); |
67 | 67 | ||
68 | /* List of 3270 devices. */ | 68 | /* List of 3270 devices. */ |
69 | static struct list_head raw3270_devices = LIST_HEAD_INIT(raw3270_devices); | 69 | static LIST_HEAD(raw3270_devices); |
70 | 70 | ||
71 | /* | 71 | /* |
72 | * Flag to indicate if the driver has been registered. Some operations | 72 | * Flag to indicate if the driver has been registered. Some operations |
@@ -1210,7 +1210,7 @@ struct raw3270_notifier { | |||
1210 | void (*notifier)(int, int); | 1210 | void (*notifier)(int, int); |
1211 | }; | 1211 | }; |
1212 | 1212 | ||
1213 | static struct list_head raw3270_notifier = LIST_HEAD_INIT(raw3270_notifier); | 1213 | static LIST_HEAD(raw3270_notifier); |
1214 | 1214 | ||
1215 | int raw3270_register_notifier(void (*notifier)(int, int)) | 1215 | int raw3270_register_notifier(void (*notifier)(int, int)) |
1216 | { | 1216 | { |