[misc] fix warnings reported by Cppcheck

* Closes #1520
This commit is contained in:
Pete Batard 2020-05-08 01:25:35 +01:00
parent 79a6f8942e
commit bcca9144b7
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
5 changed files with 8 additions and 14 deletions

View file

@ -1391,9 +1391,6 @@ static BOOL SetupWinToGo(DWORD DriveIndex, const char* drive_name, BOOL use_esp)
return FALSE;
}
Sleep(200);
}
if (use_esp) {
// Need to have the ESP mounted to invoke bcdboot
ms_efi = AltMountVolume(DriveIndex, partition_offset[PI_ESP], FALSE);
if (ms_efi == NULL) {