MdeModulePkg/NetLib: Refine coding style for API NetLibDetectMediaWaitTimeout

Cc: Dandan Bi <dandan.bi@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wang Fan <fan.wang@intel.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
This commit is contained in:
Wang Fan 2017-12-25 10:41:18 +08:00 committed by Fu Siyuan
parent 718b6fe9a3
commit c5738e3c81
1 changed files with 2 additions and 3 deletions

View File

@ -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;