aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/libcommon
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-11-29 00:45:23 +0100
committerHarald Welte <laforge@gnumonks.org>2017-11-29 00:45:23 +0100
commitaf616ec4e24a0316b8024390d8119871c4d53696 (patch)
tree20b979fb54c129a0fdf22a5badf70a775cb0c5ce /firmware/libcommon
parent6051e126dab7d165c4057f588141e98fcef45786 (diff)
CCID driver: Use USBD_GetDriver() instead of non-initialized state variable
Diffstat (limited to 'firmware/libcommon')
-rw-r--r--firmware/libcommon/source/cciddriver.c4
1 files changed, 1 insertions, 3 deletions
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 {