Skip to content
Snippets Groups Projects
Commit 0fdc3955 authored by shattered's avatar shattered
Browse files

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
parent 9f5c4d22
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment