6bbb925
From aa58a042ec20575143c1a5c813c9552a286aeb0e Mon Sep 17 00:00:00 2001
0e55d5b
From: Chris Leech <cleech@redhat.com>
0e55d5b
Date: Mon, 19 Nov 2012 17:09:24 -0800
0e55d5b
Subject: remove the offload boot supported ifdef
0e55d5b
0e55d5b
---
0e55d5b
 usr/iface.c | 7 +------
0e55d5b
 1 file changed, 1 insertion(+), 6 deletions(-)
0e55d5b
0e55d5b
diff --git a/usr/iface.c b/usr/iface.c
0e55d5b
index c86892e..f5441c0 100644
0e55d5b
--- a/usr/iface.c
0e55d5b
+++ b/usr/iface.c
0e55d5b
@@ -895,6 +895,7 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
0e55d5b
 {
0e55d5b
 	struct iscsi_transport *t = NULL;
0e55d5b
 	uint32_t hostno;
0e55d5b
+	int rc;
0e55d5b
 
0e55d5b
 	if (strlen(context->initiatorname))
0e55d5b
 		strlcpy(iface->iname, context->initiatorname,
0e55d5b
@@ -907,10 +908,7 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
0e55d5b
 			return 0;
0e55d5b
 		}
0e55d5b
 	} else if (strlen(context->iface)) {
0e55d5b
-/* this ifdef is only temp until distros and firmwares are updated */
0e55d5b
-#ifdef OFFLOAD_BOOT_SUPPORTED
0e55d5b
 		char transport_name[ISCSI_TRANSPORT_NAME_MAXLEN];
0e55d5b
-		int rc;
0e55d5b
 
0e55d5b
 		memset(transport_name, 0, ISCSI_TRANSPORT_NAME_MAXLEN);
0e55d5b
 		/* make sure offload driver is loaded */
0e55d5b
@@ -936,9 +934,6 @@ int iface_setup_from_boot_context(struct iface_rec *iface,
0e55d5b
 		}
0e55d5b
 
0e55d5b
 		strlcpy(iface->netdev, context->iface, sizeof(iface->netdev));
0e55d5b
-#else
0e55d5b
-		return 0;
0e55d5b
-#endif
0e55d5b
 	} else
0e55d5b
 		return 0;
0e55d5b
 
0e55d5b
-- 
0e55d5b
1.7.11.7
0e55d5b