[Open-FCoE] [PATCH 5/5] fcoe: remove unnecessary list and lock initializations.

Joe Eykholt jeykholt at cisco.com
Tue Jul 7 23:59:33 UTC 2009


The hostlist and the hostlist_lock were initialized both in
the declaration and in fcoe_init().  Remove the unneeded code.

Signed-off-by: Joe Eykholt <jeykholt at cisco.com>
---
 drivers/scsi/fcoe/fcoe.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)


diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index da321e0..0cb30a0 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -1851,9 +1851,6 @@ static int __init fcoe_init(void)
 	int rc = 0;
 	struct fcoe_percpu_s *p;
 
-	INIT_LIST_HEAD(&fcoe_hostlist);
-	rwlock_init(&fcoe_hostlist_lock);
-
 	mutex_lock(&fcoe_config_mutex);
 	for_each_possible_cpu(cpu) {
 		p = &per_cpu(fcoe_percpu, cpu);





More information about the devel mailing list