mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-11-08 17:55:59 +03:00
CCID driver: Use USBD_GetDriver() instead of non-initialized state variable
This commit is contained in:
1 parent
6051e126da
commit
af616ec4e2
1 file changed
+1
-3
@@ -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 {
|
||||
|
||||
|
||||
Reference in new issue
Block a user