stm32/usbdev: Change static function variable to non-static.

It's written straight away in the function on every call so it doesn't need
to be static.
This commit is contained in:
Damien George 2017-09-20 17:45:21 +10:00
parent 78602a217f
commit 347de3e218
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ static void USBD_SetConfig(USBD_HandleTypeDef *pdev ,
USBD_SetupReqTypedef *req)
{
static uint8_t cfgidx;
uint8_t cfgidx;
cfgidx = (uint8_t)(req->wValue);