1
0
Fork 0

CO_fifo: static analysis: result of assignment operator used in right operand to '=' operator [MISRA 2012 Rule 13.4, advisory]

This commit is contained in:
temi54c1l8 2024-06-26 13:14:11 +02:00
parent f6535def56
commit a5004f4649

View file

@ -1168,7 +1168,8 @@ size_t CO_fifo_cpyTok2Hex(CO_fifo_t *dest, CO_fifo_t *src, uint8_t *status) {
}
/* get free space of the dest fifo */
destSpaceStart = destSpace = CO_fifo_getSpace(dest);
destSpaceStart = CO_fifo_getSpace(dest);
destSpace = destSpaceStart;
/* is this the first write into dest? */
if (!dest->started) {
@ -1279,7 +1280,8 @@ size_t CO_fifo_cpyTok2Vs(CO_fifo_t *dest, CO_fifo_t *src, uint8_t *status) {
}
/* get free space of the dest fifo */
destSpaceStart = destSpace = CO_fifo_getSpace(dest);
destSpaceStart = CO_fifo_getSpace(dest);
destSpace = destSpaceStart;
/* is this the first write into dest? */
if (!dest->started) {
@ -1442,7 +1444,8 @@ size_t CO_fifo_cpyTok2B64(CO_fifo_t *dest, CO_fifo_t *src, uint8_t *status) {
}
/* get free space of the dest fifo */
destSpaceStart = destSpace = CO_fifo_getSpace(dest);
destSpaceStart = CO_fifo_getSpace(dest);
destSpace = destSpaceStart;
/* is this the first write into dest? */
if (!dest->started) {