aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-11 08:37:21 +0100
committerMax Kellermann <max@duempel.org>2009-11-11 08:37:21 +0100
commit707b9fea17e5a7b67a181d000e118f9b1185ebc5 (patch)
tree742b32a238d07e9b18afdbfeb7db4d3c5387aee5
parentd605329f833ac323a41ca34ee4428d6bef69b1b1 (diff)
downloadmpd-707b9fea17e5a7b67a181d000e118f9b1185ebc5.tar.gz
mpd-707b9fea17e5a7b67a181d000e118f9b1185ebc5.tar.xz
mpd-707b9fea17e5a7b67a181d000e118f9b1185ebc5.zip
decoder/flac: removed redundant NULL checks
After the decoder loop, "flac_dec" is always set.
-rw-r--r--src/decoder/flac_plugin.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c
index 9c5382e0e..cdb74e72d 100644
--- a/src/decoder/flac_plugin.c
+++ b/src/decoder/flac_plugin.c
@@ -483,9 +483,7 @@ flac_decode_internal(struct decoder * decoder,
fail:
flac_data_deinit(&data);
-
- if (flac_dec)
- flac_delete(flac_dec);
+ flac_delete(flac_dec);
if (err)
g_warning("%s\n", err);
@@ -665,9 +663,7 @@ fail:
g_free(pathname);
flac_data_deinit(&data);
-
- if (flac_dec)
- flac_delete(flac_dec);
+ flac_delete(flac_dec);
if (err)
g_warning("%s\n", err);
@@ -787,9 +783,7 @@ flac_filedecode_internal(struct decoder* decoder,
fail:
flac_data_deinit(&data);
-
- if (flac_dec)
- flac_delete(flac_dec);
+ flac_delete(flac_dec);
if (err)
g_warning("%s\n", err);