[Open-FCoE] [PATCH] libhbalinux: remove unused lport_count variable

Joe Eykholt jeykholt at cisco.com
Sat Jan 17 01:47:49 UTC 2009


libhbalinux: remove unused lport_count variable

Signed-off-by: Joe Eykholt <jeykholt at cisco.com>
---
 src/lport.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)


diff --git a/src/lport.c b/src/lport.c
index 5701809..d751b01 100644
--- a/src/lport.c
+++ b/src/lport.c
@@ -101,7 +101,6 @@ counting_rports(struct dirent *dp, void *arg)
 static int
 sysfs_scan(struct dirent *dp, void *arg)
 {
-	int lport_count = 0;
 	HBA_ADAPTERATTRIBUTES *atp;
 	HBA_PORTATTRIBUTES *pap;
 	HBA_WWN wwnn;
@@ -113,9 +112,6 @@ sysfs_scan(struct dirent *dp, void *arg)
 	char *driverName;
 	int data[32], rc, i;
 
-	/* Found a local port! */
-	lport_count++;
-
 	/*
 	 * Create a new HBA entry (ap) for the local port
 	 * We will create a new HBA entry for each local port.





More information about the devel mailing list