diff options
author | Amir Hammad <amir.hammad@hotmail.com> | 2016-09-11 09:39:08 +0200 |
---|---|---|
committer | Amir Hammad <amir.hammad@hotmail.com> | 2016-09-11 13:31:48 +0200 |
commit | b055665fb0f978960797cd66fcc93ab7638e3695 (patch) | |
tree | 03b336c8b245991d42da42184e1a3074a72080ac | |
parent | d7f23c7a8fab589ef35690e4cdaab7ce3ef72b74 (diff) | |
download | secure-hid-b055665fb0f978960797cd66fcc93ab7638e3695.tar.gz secure-hid-b055665fb0f978960797cd66fcc93ab7638e3695.tar.bz2 secure-hid-b055665fb0f978960797cd66fcc93ab7638e3695.zip |
lld: remove not used error_count field in channel struct
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
-rw-r--r-- | src/usbh_lld_stm32f4.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/usbh_lld_stm32f4.c b/src/usbh_lld_stm32f4.c index 38b46e7..26ad6bd 100644 --- a/src/usbh_lld_stm32f4.c +++ b/src/usbh_lld_stm32f4.c @@ -47,7 +47,6 @@ struct _channel { enum CHANNEL_STATE state;
usbh_packet_t packet;
uint32_t data_index; //used in receive function
- uint8_t error_count;
};
typedef struct _channel channel_t;
@@ -918,7 +917,6 @@ static int8_t get_free_channel(void *drvdata) OTG_HCINTMSK_CHHM | OTG_HCINTMSK_STALLM |
OTG_HCINTMSK_FRMORM;
REBASE(OTG_HAINTMSK) |= (1 << i);
- dev->channels[i].error_count = 0;
return i;
}
}
|