mirror of https://github.com/acidanthera/audk.git
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:
parent
718b6fe9a3
commit
c5738e3c81
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue