mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(oss.c) Silence some Coverity warnings
This commit is contained in:
parent
63d2e543af
commit
39679ccdce
@ -120,7 +120,9 @@ static bool oss_stop(void *data)
|
||||
{
|
||||
int *fd = (int*)data;
|
||||
|
||||
ioctl(*fd, SNDCTL_DSP_RESET, 0);
|
||||
if (ioctl(*fd, SNDCTL_DSP_RESET, 0) < 0)
|
||||
return false;
|
||||
|
||||
oss_is_paused = true;
|
||||
return true;
|
||||
}
|
||||
@ -155,7 +157,9 @@ static void oss_free(void *data)
|
||||
{
|
||||
int *fd = (int*)data;
|
||||
|
||||
ioctl(*fd, SNDCTL_DSP_RESET, 0);
|
||||
if (ioctl(*fd, SNDCTL_DSP_RESET, 0) < 0)
|
||||
return;
|
||||
|
||||
close(*fd);
|
||||
free(fd);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user