From: Steinar H. Gunderson Date: Sat, 22 Dec 2018 00:23:10 +0000 (+0100) Subject: Fix an unneeded comparison with zero. X-Git-Tag: 1.4.3~9 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=4ca2711d4e8f8a3c20e5feda537b30c356a64329 Fix an unneeded comparison with zero. Found by Coverity Scan. --- diff --git a/config.cpp b/config.cpp index 062f5bf..19628ec 100644 --- a/config.cpp +++ b/config.cpp @@ -431,7 +431,7 @@ bool parse_stream(const ConfigLine &line, Config *config) return false; } stream.hls_backlog_margin = stoi(hls_backlog_margin_it->second); - if (stream.hls_backlog_margin < 0 || stream.hls_backlog_margin >= stream.backlog_size) { + if (stream.hls_backlog_margin >= stream.backlog_size) { log(ERROR, "'hls_backlog_margin' must be nonnegative, but less than the backlog size"); return false; }