[edk2-devel] [PATCH 05/35] EmulatorPkg/DxeTimerLib: drop superfluous cast
Ni, Ray
ray.ni at intel.com
Tue Sep 17 20:02:08 UTC 2019
Reviewed-by: Ray Ni <ray.ni at intel.com>
> -----Original Message-----
> From: Laszlo Ersek <lersek at redhat.com>
> Sent: Tuesday, September 17, 2019 12:49 PM
> To: edk2-devel-groups-io <devel at edk2.groups.io>
> Cc: Andrew Fish <afish at apple.com>; Justen, Jordan L <jordan.l.justen at intel.com>; Ni, Ray <ray.ni at intel.com>
> Subject: [PATCH 05/35] EmulatorPkg/DxeTimerLib: drop superfluous cast
>
> "gTimerEvent" has type EFI_EVENT already, drop the superfluous cast.
>
> Cc: Andrew Fish <afish at apple.com>
> Cc: Jordan Justen <jordan.l.justen at intel.com>
> Cc: Ray Ni <ray.ni at intel.com>
> Signed-off-by: Laszlo Ersek <lersek at redhat.com>
> ---
>
> Notes:
> build-tested only
>
> EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c b/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c
> index 14cae4214c66..6fb5d8f3aaea 100644
> --- a/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c
> +++ b/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c
> @@ -40,7 +40,7 @@ RegisterTimerArchProtocol (
> gTimerPeriod = MultU64x32 (gTimerPeriod, 100);
>
> if (gTimerEvent == NULL) {
> - Status = gBS->CreateEvent (EVT_TIMER, 0, NULL, NULL, (VOID **)&gTimerEvent);
> + Status = gBS->CreateEvent (EVT_TIMER, 0, NULL, NULL, &gTimerEvent);
> ASSERT_EFI_ERROR (Status);
> }
> }
> --
> 2.19.1.3.g30247aa5d201
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#47424): https://edk2.groups.io/g/devel/message/47424
Mute This Topic: https://groups.io/mt/34180204/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list