Revert "usb_storage: make it a bit more correct"

Clearly this was a stupid commit, no idea why I did that.

This reverts commit 074e911859.
This commit is contained in:
Amaury Pouly 2015-02-16 14:06:28 +01:00
parent 7d91f8a1a8
commit 27c7e477ca

View file

@ -1161,7 +1161,6 @@ static void handle_scsi(struct command_block_wrapper* cbw)
default: default:
logf("scsi unknown cmd %x",cbw->command_block[0x0]); logf("scsi unknown cmd %x",cbw->command_block[0x0]);
usb_drv_stall(ep_in, true,true);
send_csw(UMS_STATUS_FAIL); send_csw(UMS_STATUS_FAIL);
cur_sense_data.sense_key=SENSE_ILLEGAL_REQUEST; cur_sense_data.sense_key=SENSE_ILLEGAL_REQUEST;
cur_sense_data.asc=ASC_INVALID_COMMAND; cur_sense_data.asc=ASC_INVALID_COMMAND;