make alsapcm_read()'s return value preparation clearer

... by nesting the success case into the != -EPIPE block.
This commit is contained in:
Oswald Buddenhagen
2024-02-01 01:49:54 +01:00
committed by Lars Immisch
parent 1c730123eb
commit 16345a139a

View File

@@ -1385,10 +1385,10 @@ alsapcm_read(alsapcm_t *self, PyObject *args)
Py_DECREF(buffer_obj);
return NULL;
}
}
if (res > 0 ) {
sizeout = res * self->framesize;
else
{
sizeout = res * self->framesize;
}
}
if (size != sizeout) {