Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
\r
**/\r
\r
-#include <uefi.h>\r
+#include <Uefi.h>\r
#include <Library/BaseLib.h>\r
#include <Library/TimerLib.h>\r
#include <Library/BaseMemoryLib.h>\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
-#include <uefi.h>\r
+#include <Uefi.h>\r
#include <Library/BaseLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/TcgStorageOpalLib.h>\r
TCG_RESULT Ret;\r
OPAL_OWNER_SHIP Owner;\r
\r
- NULL_CHECK(Session);\r
- NULL_CHECK(Msid);\r
+ if ((Session == NULL) || (Msid == NULL)) {\r
+ return OpalOwnershipUnknown;\r
+ }\r
\r
Owner = OpalOwnershipUnknown;\r
//\r