Code: Fix stream buffer warning (#335)

This commit is contained in:
alfred gedeon 2021-05-27 09:11:35 -07:00 committed by GitHub
parent 736f2302ae
commit a1b918c1aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1206,7 +1206,6 @@ static size_t prvReadBytesFromBuffer( StreamBuffer_t * pxStreamBuffer,
if( xCount > xFirstLength )
{
/* ...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 *. */
}
else