]> git.proxmox.com Git - mirror_edk2.git/commit - Vlv2TbltDevicePkg/PpmPolicy/PpmPolicy.c
Vlv2TbltDevicePkg/PpmPolicy: Remove the usage of global variables
authorGary Lin <glin@suse.com>
Fri, 29 Jul 2016 03:25:37 +0000 (11:25 +0800)
committerdavid wei <david.wei@intel.com>
Wed, 3 Aug 2016 03:08:33 +0000 (11:08 +0800)
commit55ef35d21eea88a0785cfec47df5059945fb0f0c
treec7560c2955b97f0a2cf962c76db6015d8a922ede
parent135ea32a199b68b0edbdc8699efda5a90d0a41e0
Vlv2TbltDevicePkg/PpmPolicy: Remove the usage of global variables

gcc issued the error of "multiple deifintion" since gBS was also defined
in MdePkg/Library/UefiBootServicesTableLib. Actually those global variables,
gBS, pBS, and pRS, in PpmPolicy.h were only used in one function. Besides,
gBS and pRS were not really used. Remove gBS and pRS and declare pBS in
PpmPolicyEntry() to satisfy gcc.

Cc: David Wei <david.wei@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: David Wei <david.wei@intel.com>
Vlv2TbltDevicePkg/PpmPolicy/PpmPolicy.c
Vlv2TbltDevicePkg/PpmPolicy/PpmPolicy.h