usb-linux: remove unreachable default in switch statement
Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
b6034a399e
commit
3c9c706c3b
@ -846,9 +846,6 @@ static int usb_linux_update_endp_table(USBHostDevice *s)
|
|||||||
case 0x03:
|
case 0x03:
|
||||||
type = USBDEVFS_URB_TYPE_INTERRUPT;
|
type = USBDEVFS_URB_TYPE_INTERRUPT;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
DPRINTF("usb_host: malformed endpoint type\n");
|
|
||||||
type = USBDEVFS_URB_TYPE_BULK;
|
|
||||||
}
|
}
|
||||||
s->endp_table[(devep & 0xf) - 1].type = type;
|
s->endp_table[(devep & 0xf) - 1].type = type;
|
||||||
s->endp_table[(devep & 0xf) - 1].halted = 0;
|
s->endp_table[(devep & 0xf) - 1].halted = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user