return EFI_INVALID_PARAMETER;\r
}\r
\r
+ //\r
+ // Judge current mode with wanted mode at first.\r
+ // \r
+ if (Private->ConsoleOutputMode == Mode) {\r
+ return EFI_SUCCESS;\r
+ }\r
+\r
Supported = FALSE;\r
TextAndGop = &Private->TextOutList[0];\r
for (Index = 0; Index < Private->CurrentNumberOfConsoles; Index++, TextAndGop++) {\r