In the last error message handling change, some error conditions
didn't get properly inverted.
if (err < 0)
return err;
}
- if (! pcm->poll_fd < 0) {
+ if (pcm->poll_fd < 0) {
SNDMSG("poll_fd < 0");
return -EIO;
}
*/
snd_pcm_t *snd_async_handler_get_pcm(snd_async_handler_t *handler)
{
- if (handler->type == SND_ASYNC_HANDLER_PCM) {
+ if (handler->type != SND_ASYNC_HANDLER_PCM) {
SNDMSG("invalid handler type %d", handler->type);
return NULL;
}