pcm: add braces to condition (coverity)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2019-11-15 12:44:28 +01:00
parent 8006a8e03c
commit 6fbf87c402

View file

@ -447,11 +447,12 @@ int snd_pcm_munmap(snd_pcm_t *pcm)
SNDMSG("Not mmapped");
return -ENXIO;
}
if (pcm->mmap_shadow)
if (pcm->mmap_shadow) {
if (pcm->ops->munmap)
return pcm->ops->munmap(pcm);
else
return -ENOSYS;
}
for (c = 0; c < pcm->channels; ++c) {
snd_pcm_channel_info_t *i = &pcm->mmap_channels[c];
unsigned int c1;