Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132331
b: refs/heads/master
c: 03ec862
h: refs/heads/master
i:
  132329: 3a55628
  132327: a037284
v: v3
  • Loading branch information
Robert Love authored and James Bottomley committed Mar 10, 2009
1 parent 0bd1f64 commit 33efe99
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a468f328ad83f14556e5961ef1de80b32b428d32
refs/heads/master: 03ec862dff57ca3d1fcb439b99aadc45bc5c2f28
3 changes: 0 additions & 3 deletions trunk/drivers/scsi/fcoe/fc_transport_fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,6 @@ int fcoe_transport_register(struct fcoe_transport *t)
list_add_tail(&t->list, &fcoe_transports);
mutex_unlock(&fcoe_transports_lock);

mutex_init(&t->devlock);
INIT_LIST_HEAD(&t->devlist);

printk(KERN_DEBUG "fcoe_transport_register:%s\n", t->name);

return 0;
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/scsi/fcoe/fcoe_sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,15 @@ int __init fcoe_sw_init(void)
/* attach to scsi transport */
scsi_transport_fcoe_sw =
fc_attach_transport(&fcoe_sw_transport_function);

if (!scsi_transport_fcoe_sw) {
printk(KERN_ERR "fcoe_sw_init:fc_attach_transport() failed\n");
return -ENODEV;
}

mutex_init(&fcoe_sw_transport.devlock);
INIT_LIST_HEAD(&fcoe_sw_transport.devlist);

/* register sw transport */
fcoe_transport_register(&fcoe_sw_transport);
return 0;
Expand Down

0 comments on commit 33efe99

Please sign in to comment.