\r
@param UsbMass The device whose sense data is requested.\r
\r
- @retval EFI_SUCCESS The command is excuted successfully.\r
+ @retval EFI_SUCCESS The command is executed successfully.\r
@retval EFI_DEVICE_ERROR Failed to request sense.\r
@retval EFI_NO_RESPONSE The device media doesn't response this request.\r
@retval EFI_INVALID_PARAMETER The command has some invalid parameters.\r
@param DataLen The length of expected data\r
@param Timeout The timeout used to transfer\r
\r
- @retval EFI_SUCCESS Command is excuted successfully\r
+ @retval EFI_SUCCESS Command is executed successfully\r
@retval Others Command execution failed.\r
\r
**/\r
return EFI_TIMEOUT;\r
}\r
\r
- if (Status == EFI_DEVICE_ERROR) {\r
- DEBUG ((EFI_D_ERROR, "UsbBootExecCmd: Device Error to Exec 0x%x Cmd\n", *(UINT8 *)Cmd));\r
- return EFI_DEVICE_ERROR;\r
- }\r
-\r
//\r
// If ExecCommand() returns no error and CmdResult is success,\r
// then the commnad transfer is successful.\r
DataLen,\r
Timeout\r
);\r
- if (Status == EFI_SUCCESS || Status == EFI_MEDIA_CHANGED || Status == EFI_NO_MEDIA || Status == EFI_DEVICE_ERROR) {\r
+ if (Status == EFI_SUCCESS || Status == EFI_MEDIA_CHANGED || Status == EFI_NO_MEDIA) {\r
break;\r
}\r
//\r