From b1a6a0676a741a886c1a1287d0427a17620d3919 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Sat, 7 Sep 2019 00:40:56 +0200 Subject: [PATCH] MdePkg/DxeServicesLib: remove bogus cast The HandleProtocol() boot service takes an EFI_HANDLE, not an (EFI_HANDLE*). Remove the bogus cast in the InternalImageHandleToFvHandle() function. This is a semantic cleanup; there is no change in behavior. Cc: Liming Gao Cc: Michael D Kinney Signed-off-by: Laszlo Ersek Reviewed-by: Liming Gao Reviewed-by: Philippe Mathieu-Daude --- MdePkg/Library/DxeServicesLib/DxeServicesLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Library/DxeServicesLib/DxeServicesLib.c b/MdePkg/Library/DxeServicesLib/DxeServicesLib.c index c416b2dd8c..0735b2f804 100644 --- a/MdePkg/Library/DxeServicesLib/DxeServicesLib.c +++ b/MdePkg/Library/DxeServicesLib/DxeServicesLib.c @@ -49,7 +49,7 @@ InternalImageHandleToFvHandle ( ASSERT (ImageHandle != NULL); Status = gBS->HandleProtocol ( - (EFI_HANDLE *) ImageHandle, + ImageHandle, &gEfiLoadedImageProtocolGuid, (VOID **) &LoadedImage ); -- 2.39.2