From 0fdc3955ef31587e14342bb0e74eab9acb403d35 Mon Sep 17 00:00:00 2001
From: shattered <shattered@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Sat, 8 Dec 2007 17:56:27 +0000
Subject: [PATCH] Remove #if 0'd code (old drive enumeration method).

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2443 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 sm5/cciss.cpp | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/sm5/cciss.cpp b/sm5/cciss.cpp
index f81ab2cee..d425f8e1a 100644
--- a/sm5/cciss.cpp
+++ b/sm5/cciss.cpp
@@ -212,24 +212,12 @@ static int cciss_getlun(int device, int target, unsigned char *physlun, int repo
       pout("===== [%s] DATA END (%d Bytes) =====\n\n", "LUN DATA", sizeof(_ReportLUNdata_struct));
     }
 
-#if 0
-    for (i=0; i<CISS_MAX_LUN; i++) 
-    {
-        if (luns->LUN[i][6] == target) 
-        {
-            memcpy(physlun, luns->LUN[i], 8);
-            free(luns);
-            return 0;
-        }
-    }
-#else
     if (target >= 0 && target < (int) be32toh(luns->LUNListLength) / 8)
     {
 	memcpy(physlun, luns->LUN[target], 8);
 	free(luns);
 	return 0;
     }
-#endif
 
     free(luns);
     return 1;
-- 
GitLab