USB: Fix struct member not used warnings.

Codacy.
This commit is contained in:
lightningterror 2023-05-11 09:49:44 +02:00
parent 9493d3e9c9
commit 449da42108
2 changed files with 1 additions and 13 deletions
pcsx2/USB

View File

@ -85,7 +85,6 @@ namespace usb_mic
} f; //freezable } f; //freezable
/* properties */ /* properties */
uint32_t debug;
std::vector<int16_t> buffer[2]; std::vector<int16_t> buffer[2];
//uint8_t fifo[2][200]; //on-chip 400byte fifo //uint8_t fifo[2][200]; //on-chip 400byte fifo
}; };
@ -411,12 +410,6 @@ namespace usb_mic
break; break;
} }
if (set_vol)
{
//if (s->debug) {
//}
}
return ret; return ret;
} }
@ -505,9 +498,7 @@ namespace usb_mic
ret = usb_audio_get_control(s, request & 0xff, value, index, length, data); ret = usb_audio_get_control(s, request & 0xff, value, index, length, data);
if (ret < 0) if (ret < 0)
{ {
//if (s->debug) {
Console.Warning("singstar: fail: get control\n"); Console.Warning("singstar: fail: get control\n");
//}
goto fail; goto fail;
} }
p->actual_length = ret; p->actual_length = ret;
@ -520,9 +511,7 @@ namespace usb_mic
ret = usb_audio_set_control(s, request & 0xff, value, index, length, data); ret = usb_audio_set_control(s, request & 0xff, value, index, length, data);
if (ret < 0) if (ret < 0)
{ {
//if (s->debug) {
Console.Warning("singstar: fail: set control\n data:"); Console.Warning("singstar: fail: set control\n data:");
//}
goto fail; goto fail;
} }
break; break;
@ -670,7 +659,7 @@ namespace usb_mic
ret = ret * outChns * sizeof(int16_t); ret = ret * outChns * sizeof(int16_t);
p->actual_length = ret; p->actual_length = ret;
#if 0 //defined(_DEBUG) && _MSC_VER > 1800 #if 0 //defined(_DEBUG) && defined(_MSC_VER)
if (!file) if (!file)
{ {
char name[1024] = {0}; char name[1024] = {0};

View File

@ -75,7 +75,6 @@ namespace usb_msd
struct usb_msd_csw csw; struct usb_msd_csw csw;
enum USBMSDMode mode; enum USBMSDMode mode;
uint32_t data_len; uint32_t data_len;
uint32_t residue;
uint32_t tag; uint32_t tag;
uint32_t file_op_tag; // read from file or buf uint32_t file_op_tag; // read from file or buf
int32_t result; int32_t result;