Clean up a couple return value checks.

This commit is contained in:
Justin Maggard
2014-04-07 14:20:50 -07:00
parent 27eae53584
commit bc43d45964
4 changed files with 8 additions and 8 deletions

View File

@ -111,7 +111,7 @@ _get_wavtags(char *filename, struct song_metadata *psong)
{
//DEBUG DPRINTF(E_DEBUG,L_SCANNER,"Found 'fmt ' header\n");
len = 16;
if(!read(fd, fmt, len) || (len != 16))
if(read(fd, fmt, len) != len)
{
close(fd);
DPRINTF(E_WARN, L_SCANNER, "Bad .wav file: can't read fmt: %s\n",