diff --git a/AdvLoggerPkg/UnitTests/AdvancedLoggerWrapper/AdvancedLoggerWrapperTestApp.c b/AdvLoggerPkg/UnitTests/AdvancedLoggerWrapper/AdvancedLoggerWrapperTestApp.c index 1bc55ecd90..2509686009 100644 --- a/AdvLoggerPkg/UnitTests/AdvancedLoggerWrapper/AdvancedLoggerWrapperTestApp.c +++ b/AdvLoggerPkg/UnitTests/AdvancedLoggerWrapper/AdvancedLoggerWrapperTestApp.c @@ -185,8 +185,7 @@ InitializeInMemoryLog ( if (!ValidateInfoBlock ()) { mLoggerInfo = NULL; - UT_ASSERT_NOT_NULL (mLoggerInfo); - + UT_ASSERT_NOT_NULL ((VOID *)mLoggerInfo); } // This is to bypass the restriction on runtime check. @@ -312,8 +311,7 @@ TestCursorWrappingMP ( Btc = (BASIC_TEST_CONTEXT *)Context; - UT_ASSERT_NOT_NULL (mLoggerInfo); - + UT_ASSERT_NOT_NULL ((VOID *)mLoggerInfo); // First fill in the buffer while (mLoggerInfo->LogCurrent + MESSAGE_ENTRY_SIZE_V2 (sizeof (ADVANCED_LOGGER_MESSAGE_ENTRY_V2), sizeof (ADV_TIME_TEST_STR)) < mMaxAddress) {