From af616ec4e24a0316b8024390d8119871c4d53696 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 29 Nov 2017 00:45:23 +0100 Subject: CCID driver: Use USBD_GetDriver() instead of non-initialized state variable --- firmware/libcommon/source/cciddriver.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'firmware/libcommon') diff --git a/firmware/libcommon/source/cciddriver.c b/firmware/libcommon/source/cciddriver.c index 901e415..8cf28ca 100644 --- a/firmware/libcommon/source/cciddriver.c +++ b/firmware/libcommon/source/cciddriver.c @@ -83,8 +83,6 @@ /// Driver structure for an CCID device typedef struct { - /// Standard USB device driver instance - USBDDriver usbdDriver; /// CCID message S_ccid_bulk_in_header sCcidMessage; /// CCID command @@ -889,7 +887,7 @@ static void CCID_RequestHandler(const USBGenericRequest *pRequest) else if (USBGenericRequest_GetType(pRequest) == USBGenericRequest_STANDARD) { // Forward request to the standard handler - USBDDriver_RequestHandler(&(ccidDriver.usbdDriver), pRequest); + USBDDriver_RequestHandler(USBD_GetDriver(), pRequest); } else { -- cgit v1.2.3