aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-ccid.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/usb-ccid.c')
-rw-r--r--hw/usb-ccid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-ccid.c b/hw/usb-ccid.c
index b3bcfeb4ac..8c0c7178b5 100644
--- a/hw/usb-ccid.c
+++ b/hw/usb-ccid.c
@@ -995,7 +995,7 @@ static int ccid_handle_data(USBDevice *dev, USBPacket *p)
break;
case USB_TOKEN_IN:
- switch (p->devep & 0xf) {
+ switch (p->ep->nr) {
case CCID_BULK_IN_EP:
if (!p->iov.size) {
ret = USB_RET_NAK;