mirror of https://github.com/PCSX2/pcsx2.git
USB: Fix Variable is assigned a value that is never used warning.
Codacy.
This commit is contained in:
parent
463637fa10
commit
138a2683f2
|
@ -729,9 +729,8 @@ namespace usb_msd
|
||||||
int index, int length, uint8_t* data)
|
int index, int length, uint8_t* data)
|
||||||
{
|
{
|
||||||
MSDState* s = USB_CONTAINER_OF(dev, MSDState, dev);
|
MSDState* s = USB_CONTAINER_OF(dev, MSDState, dev);
|
||||||
int ret = 0;
|
const int ret = usb_desc_handle_control(dev, p, request, value, index, length, data);
|
||||||
|
|
||||||
ret = usb_desc_handle_control(dev, p, request, value, index, length, data);
|
|
||||||
if (ret >= 0)
|
if (ret >= 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -743,7 +742,6 @@ namespace usb_msd
|
||||||
case ClassInterfaceOutRequest | MassStorageReset:
|
case ClassInterfaceOutRequest | MassStorageReset:
|
||||||
/* Reset state ready for the next CBW. */
|
/* Reset state ready for the next CBW. */
|
||||||
s->f.mode = USB_MSDM_CBW;
|
s->f.mode = USB_MSDM_CBW;
|
||||||
ret = 0;
|
|
||||||
break;
|
break;
|
||||||
case ClassInterfaceRequest | GetMaxLun:
|
case ClassInterfaceRequest | GetMaxLun:
|
||||||
data[0] = 0;
|
data[0] = 0;
|
||||||
|
|
Loading…
Reference in New Issue