Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Chao Zhang <chao.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16661
6f19259b-4bc3-4df7-8a09-
765794883524
/** @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