From c5738e3c811636bba938c2b213b92b2856d3851f Mon Sep 17 00:00:00 2001 From: Wang Fan Date: Mon, 25 Dec 2017 10:41:18 +0800 Subject: [PATCH] MdeModulePkg/NetLib: Refine coding style for API NetLibDetectMediaWaitTimeout Cc: Dandan Bi Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wang Fan Reviewed-by: Dandan Bi --- MdeModulePkg/Library/DxeNetLib/DxeNetLib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;