mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
Cleanups
This commit is contained in:
parent
8b243d419c
commit
cd781ff4b5
@ -71,7 +71,11 @@ static void adapter_thread(void *data)
|
||||
int report_number;
|
||||
int size = 0;
|
||||
|
||||
(void)tmp;
|
||||
(void)report_number;
|
||||
|
||||
slock_lock(adapter->send_control_lock);
|
||||
|
||||
if (fifo_read_avail(adapter->send_control_buffer) >= sizeof(send_command_size))
|
||||
{
|
||||
fifo_read(adapter->send_control_buffer, &send_command_size, sizeof(send_command_size));
|
||||
@ -238,6 +242,8 @@ static int add_adapter(void *data, usb_device_entry *dev)
|
||||
struct wiiusb_adapter *adapter = (struct wiiusb_adapter*)
|
||||
calloc(1, sizeof(struct wiiusb_adapter));
|
||||
|
||||
(void)rc;
|
||||
|
||||
if (!adapter)
|
||||
return -1;
|
||||
|
||||
@ -484,6 +490,8 @@ static void *wiiusb_hid_init(void)
|
||||
usb_device_entry *dev_entries;
|
||||
wiiusb_hid_t *hid = (wiiusb_hid_t*)calloc(1, sizeof(*hid));
|
||||
|
||||
(void)ret;
|
||||
|
||||
if (!hid)
|
||||
goto error;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user