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.
This commit is contained in:
Daan De Meyer
2022-05-19 15:39:25 +09:00
committed by Yu Watanabe
parent 7269d39a91
commit 1751d8c80c
-1
View File
@@ -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)