From 4a503ba1ad9afcc8a29bb98c186c26927240caa6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2014 10:30:22 +0200 Subject: decoder/mad: simplify "return", eliminate check This check was redundant, because we could only exit the loop when ret==DECODE_OK. --- src/decoder/plugins/MadDecoderPlugin.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/decoder/plugins/MadDecoderPlugin.cxx b/src/decoder/plugins/MadDecoderPlugin.cxx index 1ad0076ee..d522ab2cf 100644 --- a/src/decoder/plugins/MadDecoderPlugin.cxx +++ b/src/decoder/plugins/MadDecoderPlugin.cxx @@ -1043,10 +1043,8 @@ MadDecoder::Read() } if (!skip && ret == DECODE_OK) - break; + return true; } - - return ret != DECODE_BREAK; } static void -- cgit v1.2.3