From: longpanda Date: Mon, 26 Jul 2021 07:30:54 +0000 (+0800) Subject: Merge branch 'master' of https://github.com/ventoy/Ventoy X-Git-Tag: v1.0.48~14 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/af83f46a3db5dcc37eb68531c638d3b4d60d7382?hp=4910e9f380458c4ccaa0335bbe4502f80d8eb90f Merge branch 'master' of https://github.com/ventoy/Ventoy --- diff --git a/EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c b/EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c index a5610e5..293ffc9 100644 --- a/EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c +++ b/EDK2/edk2_mod/edk2-edk2-stable201911/MdeModulePkg/Application/Ventoy/VentoyProtocol.c @@ -628,7 +628,6 @@ STATIC UINTN ventoy_get_current_device_path_id(VOID) { UINTN i = 0; UINTN Count = 0; - UINTN NameLen = 0; UINTN MaxId = 0; UINTN CurId = 0; BOOLEAN Find = FALSE; @@ -637,8 +636,6 @@ STATIC UINTN ventoy_get_current_device_path_id(VOID) EFI_DEVICE_PATH_PROTOCOL *DevicePath = NULL; VENDOR_DEVICE_PATH *venPath = NULL; - NameLen = StrSize(L"ventoy_xxx"); - Status = gBS->LocateHandleBuffer(ByProtocol, &gEfiDevicePathProtocolGuid, NULL, &Count, &Handles); if (EFI_ERROR(Status))