aboutsummaryrefslogtreecommitdiff
path: root/audio/ossaudio.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-06-06 18:35:13 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-06-13 12:34:54 +0200
commitfb7da626c0d178d687f439af2e19401f34bc901e (patch)
tree637ead7bd04678af8c72f6acaca186891a990ffa /audio/ossaudio.c
parent2a2c4830c0068d70443f3dddc4cc668f0c601b5c (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.c6
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)