From b055665fb0f978960797cd66fcc93ab7638e3695 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Sun, 11 Sep 2016 09:39:08 +0200 Subject: lld: remove not used error_count field in channel struct Signed-off-by: Amir Hammad --- src/usbh_lld_stm32f4.c | 2 -- 1 file changed, 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; } } -- cgit