CO_SRDO: static analysis: result of assignment operator used in right operand to '=' operator [MISRA 2012 Rule 13.4, advisory]
This commit is contained in:
parent
3b89378841
commit
6cf0200afb
1 changed files with 4 additions and 2 deletions
|
|
@ -880,7 +880,8 @@ CO_SRDO_process(CO_SRDO_t* SRDO, uint32_t timeDifference_us, uint32_t* timerNext
|
|||
}
|
||||
/* inverted message received */
|
||||
else {
|
||||
SRDO->cycleTimer = SRDO->validationTimer = SRDO->cycleTime_us;
|
||||
SRDO->cycleTimer = SRDO->cycleTime_us;
|
||||
SRDO->validationTimer = SRDO->cycleTime_us;
|
||||
SRDO->nextIsNormal = true;
|
||||
|
||||
uint8_t *dataSRDO[2] = {&SRDO->CANrxData[0][0], &SRDO->CANrxData[1][0]};
|
||||
|
|
@ -1010,7 +1011,8 @@ CO_SRDO_process(CO_SRDO_t* SRDO, uint32_t timeDifference_us, uint32_t* timerNext
|
|||
}
|
||||
}
|
||||
|
||||
SRDO->NMTisOperationalPrevious = SRDO->SRDOGuard->NMTisOperational = NMTisOperational;
|
||||
SRDO->NMTisOperationalPrevious = NMTisOperational;
|
||||
SRDO->SRDOGuard->NMTisOperational = NMTisOperational;
|
||||
|
||||
return SRDO->internalState;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue