Update Code to pass EBC compiler.
Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14352 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Floppy Peim to support Recovery function from Floppy device.
|
||||
|
||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions
|
||||
@@ -1018,22 +1018,12 @@ DiscoverFdcDevice (
|
||||
// Check Media
|
||||
//
|
||||
Status = DisketChanged (FdcBlkIoDev, Info);
|
||||
switch (Status) {
|
||||
case EFI_NO_MEDIA:
|
||||
if (Status == EFI_NO_MEDIA) {
|
||||
//
|
||||
// No diskette in floppy.
|
||||
//
|
||||
MediaInfo->MediaPresent = FALSE;
|
||||
break;
|
||||
|
||||
case EFI_MEDIA_CHANGED:
|
||||
case EFI_SUCCESS:
|
||||
//
|
||||
// Diskette exists in floppy.
|
||||
//
|
||||
break;
|
||||
|
||||
default:
|
||||
MediaInfo->MediaPresent = FALSE;
|
||||
} else if (Status != EFI_MEDIA_CHANGED && Status != EFI_SUCCESS) {
|
||||
//
|
||||
// EFI_DEVICE_ERROR
|
||||
//
|
||||
|
Reference in New Issue
Block a user