/** @file\r
\r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2015, 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
PeiServices,\r
PeiBotDev\r
);\r
- //\r
- // retry the ReadFormatCapacity command\r
- //\r
- PeiBotDev->DeviceType = USBFLOPPY2;\r
+ if (EFI_ERROR (Status)) {\r
+ //\r
+ // retry the ReadFormatCapacity command\r
+ //\r
+ PeiBotDev->DeviceType = USBFLOPPY2;\r
+ }\r
break;\r
\r
default:\r