CCID driver: Use USBD_GetDriver() instead of non-initialized state variable

This commit is contained in:
Harald Welte 2017-11-29 00:45:23 +01:00
parent 6051e126da
commit af616ec4e2
1 changed files with 1 additions and 3 deletions

View File

@ -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 {