CO_SRDO: static analysis: warning 578: declaration of 'ret' hides a local variable [MISRA 2012 Rule 5.3, required]
variable already declared at the beginning of the function
This commit is contained in:
parent
e87959d86c
commit
ae2f75b7a6
1 changed files with 0 additions and 1 deletions
|
|
@ -668,7 +668,6 @@ CO_SRDO_init(CO_SRDO_t* SRDO, uint8_t SRDO_Index, CO_SRDOGuard_t* SRDOGuard, OD_
|
||||||
|
|
||||||
/* Configure CAN rx buffers */
|
/* Configure CAN rx buffers */
|
||||||
if ((err == 0U) && configurationInProgress && (informationDirection == CO_SRDO_RX)) {
|
if ((err == 0U) && configurationInProgress && (informationDirection == CO_SRDO_RX)) {
|
||||||
CO_ReturnError_t ret;
|
|
||||||
|
|
||||||
ret = CO_CANrxBufferInit(CANdevRxNormal, /* CAN device */
|
ret = CO_CANrxBufferInit(CANdevRxNormal, /* CAN device */
|
||||||
CANdevRxIdxNormal, /* rx buffer index */
|
CANdevRxIdxNormal, /* rx buffer index */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue