summaryrefslogtreecommitdiffstats
path: root/src/portable
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-05-19 00:44:31 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-05-19 08:39:25 +0200
commit1751d8c80cef40777b782c737947b4e86d99e7d6 (patch)
tree0acf01d6e9f84246296a4bf3d367e8055265f142 /src/portable
parenttest: double timeout of TEST-50-DISSECT (diff)
downloadsystemd-1751d8c80cef40777b782c737947b4e86d99e7d6.tar.xz
systemd-1751d8c80cef40777b782c737947b4e86d99e7d6.zip
portable: Remove unnecessary assert()
Fixes #23433 matches is plumbed through until it finally gets used in unit_match() which can deal with NULL matches so the assert() is unnecessary and can be removed. The two call sites of extract_image_and_extensions() also don't assert() on matches either.
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/portable.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c
index 7bba7b47e4..2191d6c653 100644
--- a/src/portable/portable.c
+++ b/src/portable/portable.c
@@ -530,7 +530,6 @@ static int extract_image_and_extensions(
int r;
assert(name_or_path);
- assert(matches);
r = image_find_harder(IMAGE_PORTABLE, name_or_path, NULL, &image);
if (r < 0)