ECC clean up.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7213 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -373,7 +373,7 @@ GraphicsConsoleControllerDriverStart (
|
||||
|
||||
Mode = Private->GraphicsOutput->Mode;
|
||||
|
||||
if (EFI_ERROR (Status) || (Mode->MaxMode)) {
|
||||
if (EFI_ERROR (Status) || (Mode->MaxMode != 0)) {
|
||||
//
|
||||
// Set default mode failed or device don't support default mode, then get the current mode information
|
||||
//
|
||||
@ -1036,7 +1036,7 @@ GraphicsConsoleConOutOutputString (
|
||||
//
|
||||
// Is the wide attribute on?
|
||||
//
|
||||
if (This->Mode->Attribute & EFI_WIDE_ATTRIBUTE) {
|
||||
if ((This->Mode->Attribute & EFI_WIDE_ATTRIBUTE) != 0) {
|
||||
//
|
||||
// If wide, add one more width unit than normal since we are going to increment at the end of the for loop
|
||||
//
|
||||
|
@ -342,7 +342,7 @@ TerminalDriverBindingStart (
|
||||
if (!EFI_ERROR (Status)) {
|
||||
Status = EFI_SUCCESS;
|
||||
for (Index = 0; Index < EntryCount; Index++) {
|
||||
if (OpenInfoBuffer[Index].Attributes & EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER) {
|
||||
if ((OpenInfoBuffer[Index].Attributes & EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER) != 0) {
|
||||
Status = EFI_ALREADY_STARTED;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user