]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/SecurityManagementLib: Mark the File parameter as OPTIONAL
authorGuomin Jiang <guomin.jiang@intel.com>
Thu, 16 Apr 2020 07:06:04 +0000 (15:06 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 22 Apr 2020 01:55:34 +0000 (01:55 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2652

According to the File description, the File is optional and can be NULL.

Signed-off-by: Guomin Jiang <guomin.jiang@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
MdeModulePkg/Include/Library/SecurityManagementLib.h
MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c

index c6ef8c38b9b797cfca44ed20c631604d2d6a000e..9bb29121af037b76ddede0853014d1b55dba937a 100644 (file)
@@ -261,7 +261,7 @@ EFIAPI
 ExecuteSecurity2Handlers (\r
   IN  UINT32                           AuthenticationOperation,\r
   IN  UINT32                           AuthenticationStatus,\r
-  IN  CONST EFI_DEVICE_PATH_PROTOCOL   *File,\r
+  IN  CONST EFI_DEVICE_PATH_PROTOCOL   *File, OPTIONAL\r
   IN  VOID                             *FileBuffer,\r
   IN  UINTN                            FileSize,\r
   IN  BOOLEAN                          BootPolicy\r
index b541dbab3c4864725eab1774e6b25f02f07315ed..de1eb5318356c49183aee88621189a518bb971a0 100644 (file)
@@ -473,7 +473,7 @@ EFIAPI
 ExecuteSecurity2Handlers (\r
   IN  UINT32                           AuthenticationOperation,\r
   IN  UINT32                           AuthenticationStatus,\r
-  IN  CONST EFI_DEVICE_PATH_PROTOCOL   *File,\r
+  IN  CONST EFI_DEVICE_PATH_PROTOCOL   *File, OPTIONAL\r
   IN  VOID                             *FileBuffer,\r
   IN  UINTN                            FileSize,\r
   IN  BOOLEAN                          BootPolicy\r