diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-06-06 18:35:13 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-06-13 12:34:54 +0200 |
commit | fb7da626c0d178d687f439af2e19401f34bc901e (patch) | |
tree | 637ead7bd04678af8c72f6acaca186891a990ffa /audio/ossaudio.c | |
parent | 2a2c4830c0068d70443f3dddc4cc668f0c601b5c (diff) |
audio: Drop superfluous conditionals around g_free()
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'audio/ossaudio.c')
-rw-r--r-- | audio/ossaudio.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/audio/ossaudio.c b/audio/ossaudio.c index 5a73716032..4db2ca65bf 100644 --- a/audio/ossaudio.c +++ b/audio/ossaudio.c @@ -736,10 +736,8 @@ static void oss_fini_in (HWVoiceIn *hw) oss_anal_close (&oss->fd); - if (oss->pcm_buf) { - g_free (oss->pcm_buf); - oss->pcm_buf = NULL; - } + g_free(oss->pcm_buf); + oss->pcm_buf = NULL; } static int oss_run_in (HWVoiceIn *hw) |