]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/PiSmmCore/Smi.c
MdeModulePkg/PiSmmCore: make type punning consistent
authorLaszlo Ersek <lersek@redhat.com>
Thu, 12 Sep 2019 22:29:43 +0000 (00:29 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 9 Oct 2019 07:40:10 +0000 (09:40 +0200)
commitf662f91cb2c8f109816c24d91957f4d254245633
tree7770918502f0244d2d177e5daac0e901d6470232
parent9388c6b1c17af9c8a9f451a42c066b3ae7d81fda
MdeModulePkg/PiSmmCore: make type punning consistent

The SmiHandlerRegister() function explicitly casts "SmiHandler" (of type
(SMI_HANDLER*)) to EFI_HANDLE, when outputting "DispatchHandle".

Apply the same cast in the counterpart function SmiHandlerUnRegister(),
which compares multiple "SmiHandler"s against the input "DispatchHandle".

This is a semantic cleanup; there is no functional change.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Core/PiSmmCore/Smi.c