aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi/ipmi_msghandler.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/ipmi/ipmi_msghandler.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/ipmi/ipmi_msghandler.c')
-rw-r--r--drivers/char/ipmi/ipmi_msghandler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c
index 5dc1265ce1d5..d01c4ff88e63 100644
--- a/drivers/char/ipmi/ipmi_msghandler.c
+++ b/drivers/char/ipmi/ipmi_msghandler.c
@@ -365,12 +365,12 @@ static struct device_driver ipmidriver = {
365}; 365};
366static DEFINE_MUTEX(ipmidriver_mutex); 366static DEFINE_MUTEX(ipmidriver_mutex);
367 367
368static struct list_head ipmi_interfaces = LIST_HEAD_INIT(ipmi_interfaces); 368static LIST_HEAD(ipmi_interfaces);
369static DEFINE_MUTEX(ipmi_interfaces_mutex); 369static DEFINE_MUTEX(ipmi_interfaces_mutex);
370 370
371/* List of watchers that want to know when smi's are added and 371/* List of watchers that want to know when smi's are added and
372 deleted. */ 372 deleted. */
373static struct list_head smi_watchers = LIST_HEAD_INIT(smi_watchers); 373static LIST_HEAD(smi_watchers);
374static DEFINE_MUTEX(smi_watchers_mutex); 374static DEFINE_MUTEX(smi_watchers_mutex);
375 375
376 376