diff options
author | Max Kellermann <max@duempel.org> | 2009-11-11 08:37:21 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-11 08:37:21 +0100 |
commit | 707b9fea17e5a7b67a181d000e118f9b1185ebc5 (patch) | |
tree | 742b32a238d07e9b18afdbfeb7db4d3c5387aee5 /src/decoder/flac_plugin.c | |
parent | d605329f833ac323a41ca34ee4428d6bef69b1b1 (diff) | |
download | mpd-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.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/flac_plugin.c | 12 |
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); |