summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2019-09-07 02:07:55 +0200
committerLaszlo Ersek <lersek@redhat.com>2019-10-09 09:40:09 +0200
commit60d222748a31346904b6a10affe8026016ee7b51 (patch)
treeb91be5fd7c3c531a62c71498ba14736c4a92e7a6
parente1b59e085a430674fc5f31be276432d18cab63b4 (diff)
downloadedk2-60d222748a31346904b6a10affe8026016ee7b51.tar.gz
edk2-60d222748a31346904b6a10affe8026016ee7b51.tar.bz2
edk2-60d222748a31346904b6a10affe8026016ee7b51.zip
EmulatorPkg/DxeTimerLib: drop superfluous cast
"gTimerEvent" has type EFI_EVENT already, drop the superfluous cast. Cc: Andrew Fish <afish@apple.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Ray Ni <ray.ni@intel.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
-rw-r--r--EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c b/EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.c
index 1bbc9e0162..9c3e97e680 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);
}
}