Skip to contentSkip to conversation

drivers/scsi/ipr.c: use LIST_HEAD instead of LIST_HEAD_INIT

PATCH Applied Denis Cheng 2 participants 2 messages Dec 6, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 10/20 drivers/scsi/ipr.c: 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.

---
 drivers/scsi/ipr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/ipr.c +1 -1
index 0841df0..9018ee8 100644
@@ -84,7 +84,7 @@
 /*
  *   Global Data
  */
-static struct list_head ipr_ioa_head = LIST_HEAD_INIT(ipr_ioa_head);
+static LIST_HEAD(ipr_ioa_head);
 static unsigned int ipr_log_level = IPR_DEFAULT_LOG_LEVEL;
 static unsigned int ipr_max_speed = 1;
 static int ipr_testmode = 0;
Signature · 1 line
1.5.3.4
Acked-by on v1 10/20
#1 lore raw
Quoted 22 lines · Denis Cheng

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.

---
 drivers/scsi/ipr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/ipr.c +1 -1
index 0841df0..9018ee8 100644
@@ -84,7 +84,7 @@
 /*
  *   Global Data
  */
-static struct list_head ipr_ioa_head = LIST_HEAD_INIT(ipr_ioa_head);
+static LIST_HEAD(ipr_ioa_head);
 static unsigned int ipr_log_level = IPR_DEFAULT_LOG_LEVEL;
 static unsigned int ipr_max_speed = 1;
 static int ipr_testmode = 0;
Signature · 3 lines
Brian King
Linux on Power Virtualization
IBM Linux Technology Center