SecurityPkg TcgStorageOpalLib: Fixed gcc build failure.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
Eric Dong 2016-04-06 12:54:11 +08:00 committed by Ruiyu Ni
parent b4ddf0eb49
commit 59ed6433dd
2 changed files with 5 additions and 4 deletions

View File

@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/ **/
#include <uefi.h> #include <Uefi.h>
#include <Library/BaseLib.h> #include <Library/BaseLib.h>
#include <Library/TimerLib.h> #include <Library/TimerLib.h>
#include <Library/BaseMemoryLib.h> #include <Library/BaseMemoryLib.h>

View File

@ -11,7 +11,7 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/ **/
#include <uefi.h> #include <Uefi.h>
#include <Library/BaseLib.h> #include <Library/BaseLib.h>
#include <Library/DebugLib.h> #include <Library/DebugLib.h>
#include <Library/TcgStorageOpalLib.h> #include <Library/TcgStorageOpalLib.h>
@ -853,8 +853,9 @@ OpalUtilDetermineOwnership(
TCG_RESULT Ret; TCG_RESULT Ret;
OPAL_OWNER_SHIP Owner; OPAL_OWNER_SHIP Owner;
NULL_CHECK(Session); if ((Session == NULL) || (Msid == NULL)) {
NULL_CHECK(Msid); return OpalOwnershipUnknown;
}
Owner = OpalOwnershipUnknown; Owner = OpalOwnershipUnknown;
// //