1
0
Fork 0

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:
temi54c1l8 2024-06-11 07:48:57 +02:00
parent e87959d86c
commit ae2f75b7a6

View file

@ -668,7 +668,6 @@ CO_SRDO_init(CO_SRDO_t* SRDO, uint8_t SRDO_Index, CO_SRDOGuard_t* SRDOGuard, OD_
/* Configure CAN rx buffers */
if ((err == 0U) && configurationInProgress && (informationDirection == CO_SRDO_RX)) {
CO_ReturnError_t ret;
ret = CO_CANrxBufferInit(CANdevRxNormal, /* CAN device */
CANdevRxIdxNormal, /* rx buffer index */