EmbeddedPkg: Remove non-needed MDEPKG_NDEBUG dependent code

Remove small amount of MDEPKG_NDEBUG dependent code which
is no longer needed, given update of 'null' debug macros
in ae83c6b7fd to explicitly
mark debug-only code as discarded.

Additionally, correctly mark as STATIC the two arrays
within the updated code block.

Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
This commit is contained in:
Mike Beaton 2024-10-20 00:04:44 +01:00 committed by mergify[bot]
parent 051ef932bd
commit 8f04804593
1 changed files with 2 additions and 4 deletions

View File

@ -8,16 +8,14 @@
#include "Mmc.h" #include "Mmc.h"
#if !defined (MDEPKG_NDEBUG) STATIC CONST CHAR8 *mStrUnit[] = {
CONST CHAR8 *mStrUnit[] = {
"100kbit/s", "1Mbit/s", "10Mbit/s", "100MBit/s", "100kbit/s", "1Mbit/s", "10Mbit/s", "100MBit/s",
"Unknown", "Unknown", "Unknown", "Unknown" "Unknown", "Unknown", "Unknown", "Unknown"
}; };
CONST CHAR8 *mStrValue[] = { STATIC CONST CHAR8 *mStrValue[] = {
"1.0", "1.2", "1.3", "1.5", "2.0", "2.5", "3.0", "3.5", "4.0", "4.5", "5.0", "1.0", "1.2", "1.3", "1.5", "2.0", "2.5", "3.0", "3.5", "4.0", "4.5", "5.0",
"Unknown", "Unknown", "Unknown", "Unknown" "Unknown", "Unknown", "Unknown", "Unknown"
}; };
#endif
VOID VOID
PrintCID ( PrintCID (