diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c index 037fb5adaa..74218c8b4e 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c @@ -1480,13 +1480,6 @@ GraphicsConsoleConOutSetAttribute ( return EFI_UNSUPPORTED; } - if (This->Mode->Mode == -1) { - // - // If current mode is not valid, return error. - // - return EFI_UNSUPPORTED; - } - if ((INT32) Attribute == This->Mode->Attribute) { return EFI_SUCCESS; }