From: Franck Bui Date: Mon, 4 Dec 2017 10:36:17 +0000 (+0100) Subject: delta: check if a prefix needs to be skipped only once X-Git-Tag: v237~99^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ddc01a5e03ccb068382aa1df9934591ec9824fb;p=thirdparty%2Fsystemd.git delta: check if a prefix needs to be skipped only once The condition is already tested later by process_fix() therefore there's no need the check in process_suffix_chop() since it will end up calling process_fix() anyways. --- diff --git a/src/delta/delta.c b/src/delta/delta.c index d2868816985..f626537438a 100644 --- a/src/delta/delta.c +++ b/src/delta/delta.c @@ -520,13 +520,6 @@ static int process_suffix_chop(const char *arg) { /* Strip prefix from the suffix */ NULSTR_FOREACH(p, prefixes) { const char *suffix; - int skip; - - skip = should_skip_prefix(p); - if (skip < 0) - return skip; - if (skip) - continue; suffix = startswith(arg, p); if (suffix) {