aboutsummaryrefslogtreecommitdiff
path: root/hw
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 /hw
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 'hw')
-rw-r--r--hw/audio/adlib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c
index 5dd739e541..656eb3773a 100644
--- a/hw/audio/adlib.c
+++ b/hw/audio/adlib.c
@@ -275,9 +275,7 @@ static void Adlib_fini (AdlibState *s)
}
#endif
- if (s->mixbuf) {
- g_free (s->mixbuf);
- }
+ g_free(s->mixbuf);
s->active = 0;
s->enabled = 0;