[USETUP] Some fixes/improvements suggested by Thomas (2/2).

- In the partlist.c disk getters: Remove useless "IsListEmpty(&List->DiskListHead)" checks, because this is actually the kind of check the while() loop does just after...
- Fix few DPRINTs.

svn path=/branches/setup_improvements/; revision=74629
This commit is contained in:
Hermès Bélusca-Maïto 2017-05-22 17:55:16 +02:00
parent f88d029c9d
commit c434a5ab21
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 5 additions and 32 deletions

View file

@ -1352,10 +1352,6 @@ GetDiskByBiosNumber(
PDISKENTRY DiskEntry;
PLIST_ENTRY Entry;
/* Check for empty disks */
if (IsListEmpty(&List->DiskListHead))
return NULL;
/* Loop over the disks and find the correct one */
Entry = List->DiskListHead.Flink;
while (Entry != &List->DiskListHead)
@ -1382,10 +1378,6 @@ GetDiskByNumber(
PDISKENTRY DiskEntry;
PLIST_ENTRY Entry;
/* Check for empty disks */
if (IsListEmpty(&List->DiskListHead))
return NULL;
/* Loop over the disks and find the correct one */
Entry = List->DiskListHead.Flink;
while (Entry != &List->DiskListHead)
@ -1414,10 +1406,6 @@ GetDiskBySCSI(
PDISKENTRY DiskEntry;
PLIST_ENTRY Entry;
/* Check for empty disks */
if (IsListEmpty(&List->DiskListHead))
return NULL;
/* Loop over the disks and find the correct one */
Entry = List->DiskListHead.Flink;
while (Entry != &List->DiskListHead)
@ -1446,10 +1434,6 @@ GetDiskBySignature(
PDISKENTRY DiskEntry;
PLIST_ENTRY Entry;
/* Check for empty disks */
if (IsListEmpty(&List->DiskListHead))
return NULL;
/* Loop over the disks and find the correct one */
Entry = List->DiskListHead.Flink;
while (Entry != &List->DiskListHead)