Cleanups
This commit is contained in:
parent
8b243d419c
commit
cd781ff4b5
|
@ -71,7 +71,11 @@ static void adapter_thread(void *data)
|
||||||
int report_number;
|
int report_number;
|
||||||
int size = 0;
|
int size = 0;
|
||||||
|
|
||||||
|
(void)tmp;
|
||||||
|
(void)report_number;
|
||||||
|
|
||||||
slock_lock(adapter->send_control_lock);
|
slock_lock(adapter->send_control_lock);
|
||||||
|
|
||||||
if (fifo_read_avail(adapter->send_control_buffer) >= sizeof(send_command_size))
|
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));
|
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*)
|
struct wiiusb_adapter *adapter = (struct wiiusb_adapter*)
|
||||||
calloc(1, sizeof(struct wiiusb_adapter));
|
calloc(1, sizeof(struct wiiusb_adapter));
|
||||||
|
|
||||||
|
(void)rc;
|
||||||
|
|
||||||
if (!adapter)
|
if (!adapter)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
@ -484,6 +490,8 @@ static void *wiiusb_hid_init(void)
|
||||||
usb_device_entry *dev_entries;
|
usb_device_entry *dev_entries;
|
||||||
wiiusb_hid_t *hid = (wiiusb_hid_t*)calloc(1, sizeof(*hid));
|
wiiusb_hid_t *hid = (wiiusb_hid_t*)calloc(1, sizeof(*hid));
|
||||||
|
|
||||||
|
(void)ret;
|
||||||
|
|
||||||
if (!hid)
|
if (!hid)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue