summaryrefslogtreecommitdiffstats
path: root/src/delta
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2017-12-04 11:36:17 +0100
committerFranck Bui <fbui@suse.com>2017-12-04 12:40:46 +0100
commit7ddc01a5e03ccb068382aa1df9934591ec9824fb (patch)
tree640a3402e6b1e4a121c4758236538120dea8120b /src/delta
parentMerge pull request #7534 from marcusfolkesson/helptext (diff)
downloadsystemd-7ddc01a5e03ccb068382aa1df9934591ec9824fb.tar.xz
systemd-7ddc01a5e03ccb068382aa1df9934591ec9824fb.zip
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.
Diffstat (limited to 'src/delta')
-rw-r--r--src/delta/delta.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/delta/delta.c b/src/delta/delta.c
index d286881698..f626537438 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) {