From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: lersek@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by groups.io with SMTP; Tue, 17 Sep 2019 12:50:19 -0700 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BD8C710F2E81; Tue, 17 Sep 2019 19:50:18 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-37.rdu2.redhat.com [10.10.120.37]) by smtp.corp.redhat.com (Postfix) with ESMTP id B0AA7600C4; Tue, 17 Sep 2019 19:50:17 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io Cc: Liming Gao , Michael D Kinney Subject: [PATCH 17/35] MdePkg/DxeServicesLib: remove bogus cast Date: Tue, 17 Sep 2019 21:49:17 +0200 Message-Id: <20190917194935.24322-18-lersek@redhat.com> In-Reply-To: <20190917194935.24322-1-lersek@redhat.com> References: <20190917194935.24322-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.66]); Tue, 17 Sep 2019 19:50:18 +0000 (UTC) Content-Transfer-Encoding: quoted-printable 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 --- Notes: lightly tested, most probably: it's practically impossible to build a platform without consuming DxeServicesLib MdePkg/Library/DxeServicesLib/DxeServicesLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Library/DxeServicesLib/DxeServicesLib.c b/MdePkg/Libr= ary/DxeServicesLib/DxeServicesLib.c index c416b2dd8c65..0735b2f80400 100644 --- a/MdePkg/Library/DxeServicesLib/DxeServicesLib.c +++ b/MdePkg/Library/DxeServicesLib/DxeServicesLib.c @@ -49,7 +49,7 @@ InternalImageHandleToFvHandle ( ASSERT (ImageHandle !=3D NULL); =20 Status =3D gBS->HandleProtocol ( - (EFI_HANDLE *) ImageHandle, + ImageHandle, &gEfiLoadedImageProtocolGuid, (VOID **) &LoadedImage ); --=20 2.19.1.3.g30247aa5d201