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:
parent
f6535def56
commit
a5004f4649
1 changed files with 6 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue