/** @file\r
Floppy Peim to support Recovery function from Floppy device.\r
\r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
// Check Media\r
//\r
Status = DisketChanged (FdcBlkIoDev, Info);\r
- switch (Status) {\r
- case EFI_NO_MEDIA:\r
+ if (Status == EFI_NO_MEDIA) {\r
//\r
// No diskette in floppy.\r
//\r
- MediaInfo->MediaPresent = FALSE;\r
- break;\r
-\r
- case EFI_MEDIA_CHANGED:\r
- case EFI_SUCCESS:\r
- //\r
- // Diskette exists in floppy.\r
- //\r
- break;\r
-\r
- default:\r
+ MediaInfo->MediaPresent = FALSE; \r
+ } else if (Status != EFI_MEDIA_CHANGED && Status != EFI_SUCCESS) {\r
//\r
// EFI_DEVICE_ERROR\r
//\r