summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorJoe Eykholt2009-08-25 22:59:19 +0200
committerJames Bottomley2009-09-10 19:07:29 +0200
commit36eb7fc872bdd7f7443ce24a718784bfa567f6c7 (patch)
tree54ec06f3a60f02d297df0e0bb3c4741ba82cd354 /drivers/scsi
parent[SCSI] fcoe: fix missing error check in call to fcoe_if_init (diff)
downloadkernel-qcow2-linux-36eb7fc872bdd7f7443ce24a718784bfa567f6c7.tar.gz
kernel-qcow2-linux-36eb7fc872bdd7f7443ce24a718784bfa567f6c7.tar.xz
kernel-qcow2-linux-36eb7fc872bdd7f7443ce24a718784bfa567f6c7.zip
[SCSI] fcoe: remove unnecessary list and lock initializations.
The hostlist and the hostlist_lock were initialized both in the delcaration and in fcoe_init(). Remove the unneeded code. Signed-off-by: Joe Eykholt <jeykholt@cisco.com> Signed-off-by: Chris Leech <christopher.leech@intel.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/fcoe/fcoe.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index d205ac08d07c..e481882a3e8f 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -1881,9 +1881,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);
-
for_each_possible_cpu(cpu) {
p = &per_cpu(fcoe_percpu, cpu);
skb_queue_head_init(&p->fcoe_rx_list);