[PATCH 3/3] fcoe: Remove match() and is_vendor fields in fcoe_transport structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Based on the previous patch, match and is_vendor are no longer required.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@xxxxxxxxxxxx>
---
 drivers/scsi/fcoe/fcoe.c |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index 711d441..79c6653 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -2318,20 +2318,11 @@ static int fcoe_hostlist_add(const struct fc_lport *lport)
 	return 0;
 }
 
-static bool fcoe_match(struct net_device *netdev)
-{
-	/* SW transport, returns true always */
-	printk(KERN_ERR "SW FCoE transport:supports all netdev:input dev %s\n",
-		netdev->name);
-	return true;
-}
 
 static struct fcoe_transport fcoe_sw_transport = {
 	.name = {"fcoe"},
 	.attached = false,
-	.is_vendor = false,
 	.list = LIST_HEAD_INIT(fcoe_sw_transport.list),
-	.match = fcoe_match,
 	.create = fcoe_create,
 	.destroy = fcoe_destroy,
 	.enable = fcoe_enable,
@@ -2354,7 +2345,7 @@ static int __init fcoe_init(void)
 	if (rc) {
 		printk(KERN_ERR "failed to register an fcoe transport, check "
 			"if libfcoe is loaded\n");
-		goto out_return;
+		return rc;
 	}
 
 	mutex_lock(&fcoe_config_mutex);
@@ -2387,7 +2378,7 @@ out_free:
 		fcoe_percpu_thread_destroy(cpu);
 	}
 	mutex_unlock(&fcoe_config_mutex);
-out_return:
+
 	return rc;
 }
 module_init(fcoe_init);
-- 
1.7.0.6




--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux