Skip to content

Commit

Permalink
Remove Coverity warnings...
Browse files Browse the repository at this point in the history
Those returned values do not need to be checked.
  • Loading branch information
jyavenard committed Jun 27, 2013
1 parent c57729d commit 62a1546
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mythtv/libs/libmythtv/recorders/audioinputalsa.cpp
Expand Up @@ -42,7 +42,7 @@ bool AudioInputALSA::Open(uint sample_bits, uint sample_rate, uint channels)
.arg(alsa_device.constData()));
return false;
}
AlsaBad(snd_config_update_free_global(), "failed to update snd config");
(void)AlsaBad(snd_config_update_free_global(), "failed to update snd config");
m_audio_sample_rate = sample_rate;
m_audio_channels = channels;
m_audio_sample_bits = sample_bits;
Expand All @@ -55,7 +55,7 @@ bool AudioInputALSA::Open(uint sample_bits, uint sample_rate, uint channels)
}
if (!(PrepHwParams() && PrepSwParams()))
{
snd_pcm_close(pcm_handle);
(void)snd_pcm_close(pcm_handle);
pcm_handle = NULL;
return false;
}
Expand All @@ -68,7 +68,7 @@ void AudioInputALSA::Close(void)
if (pcm_handle != NULL)
{
Stop();
AlsaBad(snd_pcm_close(pcm_handle), "Close close failed");
(void)AlsaBad(snd_pcm_close(pcm_handle), "Close close failed");
}
pcm_handle = NULL;
}
Expand Down

0 comments on commit 62a1546

Please sign in to comment.