]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/DxeServicesLib: remove bogus cast
authorLaszlo Ersek <lersek@redhat.com>
Fri, 6 Sep 2019 22:40:56 +0000 (00:40 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 9 Oct 2019 07:40:10 +0000 (09:40 +0200)
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 <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
MdePkg/Library/DxeServicesLib/DxeServicesLib.c

index c416b2dd8c65c5420e91d90820fbb97c9b315279..0735b2f80400ce829a6e76c0e18f99fc2e9125cb 100644 (file)
@@ -49,7 +49,7 @@ InternalImageHandleToFvHandle (
   ASSERT (ImageHandle != NULL);\r
 \r
   Status = gBS->HandleProtocol (\r
-             (EFI_HANDLE *) ImageHandle,\r
+             ImageHandle,\r
              &gEfiLoadedImageProtocolGuid,\r
              (VOID **) &LoadedImage\r
              );\r