]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/FloppyPeim.c
Update Code to pass EBC compiler.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Isa / IsaFloppyPei / FloppyPeim.c
index afeb2213c00dc6756acf3a95664ec8b812204823..d1b7dcf416a1909c336b6a4bc0e5b3965dc55ac3 100644 (file)
@@ -1,7 +1,7 @@
 /** @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
@@ -1018,22 +1018,12 @@ DiscoverFdcDevice (
   // 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