Revert "USB: android gadget: mass storage: Fix format issue for Vista Host"

This reverts commit fd515513a3.
This commit is contained in:
黄涛 2011-07-30 22:16:38 +08:00
parent f911f45786
commit 5d159c8120

View File

@ -1740,10 +1740,9 @@ static int check_command(struct fsg_dev *fsg, int cmnd_size,
/* Verify the length of the command itself */
if (cmnd_size != fsg->cmnd_size) {
/* Special case workaround: MS-Windows issues REQUEST_SENSE
* and INQUIRY commands with cbw->Length == 12 (it should be 6). */
if ((fsg->cmnd[0] == SC_REQUEST_SENSE && fsg->cmnd_size == 12)
|| (fsg->cmnd[0] == SC_INQUIRY && fsg->cmnd_size == 12))
/* Special case workaround: MS-Windows issues REQUEST SENSE
* with cbw->Length == 12 (it should be 6). */
if (fsg->cmnd[0] == SC_REQUEST_SENSE && fsg->cmnd_size == 12)
cmnd_size = fsg->cmnd_size;
else {
fsg->phase_error = 1;