diff --git a/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c b/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c index d75cca29d6..26a80a79a2 100644 --- a/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c +++ b/MdeModulePkg/Library/DxeNetLib/DxeNetLib.c @@ -2528,7 +2528,6 @@ Exit: @retval EFI_TIMEOUT Network is connecting but timeout. **/ - EFI_STATUS EFIAPI NetLibDetectMediaWaitTimeout ( @@ -2573,7 +2572,7 @@ NetLibDetectMediaWaitTimeout ( MediaPresent = TRUE; Status = NetLibDetectMedia (ServiceHandle, &MediaPresent); if (!EFI_ERROR (Status)) { - if (MediaPresent == TRUE) { + if (MediaPresent) { *MediaState = EFI_SUCCESS; } else { *MediaState = EFI_NO_MEDIA; @@ -2614,7 +2613,7 @@ NetLibDetectMediaWaitTimeout ( MediaPresent = TRUE; Status = NetLibDetectMedia (ServiceHandle, &MediaPresent); if (!EFI_ERROR (Status)) { - if (MediaPresent == TRUE) { + if (MediaPresent) { *MediaState = EFI_SUCCESS; } else { *MediaState = EFI_NO_MEDIA;