stm32/usbdev: Remove unused RxState variable, and unused struct.

This commit is contained in:
Damien George 2018-05-11 23:20:59 +10:00
parent 4b3c629067
commit aeaace0737
2 changed files with 0 additions and 10 deletions

View File

@ -44,20 +44,11 @@
#define CDC_OUT_EP (0x03)
#define CDC_CMD_EP (0x82)
typedef struct {
uint32_t bitrate;
uint8_t format;
uint8_t paritytype;
uint8_t datatype;
} USBD_CDC_LineCodingTypeDef;
typedef struct {
uint32_t data[CDC_DATA_MAX_PACKET_SIZE / 4]; // Force 32bits alignment
uint8_t CmdOpCode;
uint8_t CmdLength;
volatile uint32_t TxState;
volatile uint32_t RxState;
} USBD_CDC_HandleTypeDef;
typedef struct _USBD_STORAGE {

View File

@ -706,7 +706,6 @@ static uint8_t USBD_CDC_MSC_HID_Init(USBD_HandleTypeDef *pdev, uint8_t cfgidx) {
// Init Xfer states
usbd->CDC_ClassData.TxState = 0;
usbd->CDC_ClassData.RxState = 0;
// Prepare Out endpoint to receive next packet
USBD_LL_PrepareReceive(pdev, CDC_OUT_EP, buf, mp);