From 1de14d43e29b8f1fff8bcbf18f300adeb3eabc1d Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 30 Aug 2011 13:21:27 +0200 Subject: usb: track altsetting in USBDevice Also handle {GET,SET}_INTERFACE in common code (usb-desc.c). Signed-off-by: Gerd Hoffmann --- hw/usb-ccid.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'hw/usb-ccid.c') diff --git a/hw/usb-ccid.c b/hw/usb-ccid.c index cd349f3f17..e9935ad9e6 100644 --- a/hw/usb-ccid.c +++ b/hw/usb-ccid.c @@ -611,14 +611,6 @@ static int ccid_handle_control(USBDevice *dev, USBPacket *p, int request, } switch (request) { - case DeviceRequest | USB_REQ_GET_INTERFACE: - data[0] = 0; - ret = 1; - break; - case InterfaceOutRequest | USB_REQ_SET_INTERFACE: - ret = 0; - break; - /* Class specific requests. */ case InterfaceOutClass | CCID_CONTROL_ABORT: DPRINTF(s, 1, "ccid_control abort UNIMPLEMENTED\n"); -- cgit 1.4.1