mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-12 22:52:28 -05:00
Remove two more warnings when building the usb stack
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14497 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f27c6a6e02
commit
924e906c27
2 changed files with 5 additions and 0 deletions
|
|
@ -296,6 +296,7 @@ static int config_buf(uint8_t *buf, uint8_t type, unsigned index)
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
/* TODO check index*/
|
/* TODO check index*/
|
||||||
|
(void)index;
|
||||||
|
|
||||||
len = usb_stack_configdesc(&serial_bulk_config_desc, buf, BUFFER_SIZE, dev.descriptors);
|
len = usb_stack_configdesc(&serial_bulk_config_desc, buf, BUFFER_SIZE, dev.descriptors);
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
|
|
|
||||||
|
|
@ -279,6 +279,8 @@ static int config_buf(uint8_t *buf, uint8_t type, unsigned index)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
|
(void)index;
|
||||||
|
|
||||||
len = usb_stack_configdesc(&storage_config_desc, buf, BUFFER_SIZE, dev.descriptors);
|
len = usb_stack_configdesc(&storage_config_desc, buf, BUFFER_SIZE, dev.descriptors);
|
||||||
logf("result %d", len);
|
logf("result %d", len);
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
|
|
@ -290,6 +292,8 @@ static int config_buf(uint8_t *buf, uint8_t type, unsigned index)
|
||||||
|
|
||||||
static int set_config(int config)
|
static int set_config(int config)
|
||||||
{
|
{
|
||||||
|
(void)config;
|
||||||
|
|
||||||
/* enable endpoints */
|
/* enable endpoints */
|
||||||
logf("setup %s", dev.in->name);
|
logf("setup %s", dev.in->name);
|
||||||
ops->enable(dev.in, (struct usb_endpoint_descriptor*)dev.descriptors[1]);
|
ops->enable(dev.in, (struct usb_endpoint_descriptor*)dev.descriptors[1]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue