mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-07-04 10:58:48 +02:00
Code: Fix stream buffer warning (#335)
This commit is contained in:
parent
736f2302ae
commit
a1b918c1aa
@ -1206,7 +1206,6 @@ static size_t prvReadBytesFromBuffer( StreamBuffer_t * pxStreamBuffer,
|
|||||||
if( xCount > xFirstLength )
|
if( xCount > xFirstLength )
|
||||||
{
|
{
|
||||||
/* ...then read the remaining bytes from the start of the buffer. */
|
/* ...then read the remaining bytes from the start of the buffer. */
|
||||||
configASSERT( xCount <= xCount );
|
|
||||||
( void ) memcpy( ( void * ) &( pucData[ xFirstLength ] ), ( void * ) ( pxStreamBuffer->pucBuffer ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
|
( void ) memcpy( ( void * ) &( pucData[ xFirstLength ] ), ( void * ) ( pxStreamBuffer->pucBuffer ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user