Blame SOURCES/0156-remove-the-offload-boot-supported-ifdef.patch

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