src/wavlike.c: Drop wavlike_subchunk_parse unreachable error handling code

We already read the chunk type so bytesread is always > 0, and
(chunk_size >= chunk_length) will thus always have been covered by
(bytesread + chunk_size > chunk_length) just above.
This commit is contained in:
Mads Kiilerich 2022-10-26 13:10:30 +02:00 committed by evpobr
parent 140b241837
commit c9ee5f2ff2

View File

@ -1096,9 +1096,6 @@ wavlike_subchunk_parse (SF_PRIVATE *psf, int chunk, uint32_t chunk_length)
{ psf_log_printf (psf, " %M : %u\n", chunk, chunk_size) ;
bytesread += psf_binheader_readf (psf, "j", chunk_size) ;
} ;
if (chunk_size >= chunk_length)
return 0 ;
break ;
} ;