]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
efi-loader: drop harmful assertion
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Mar 2022 05:29:41 +0000 (14:29 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Mar 2022 05:29:44 +0000 (14:29 +0900)
This fixes a bug introduced by 7be4b23649c02df33e4292f37ffc8aecf512955a.

The function `efi_loader_get_device_part_uuid()` handles NULL
gracefully, and it is called with NULL in gpt-auto-generator.

Fixes #22862.

src/shared/efi-loader.c

index 182a1f0222c024fd7b7f6f37c4488984cf88b5f8..e114d5ea2c60af0d3a4c686f59bfb31ad200c272 100644 (file)
@@ -62,8 +62,6 @@ int efi_loader_get_device_part_uuid(sd_id128_t *ret) {
         _cleanup_free_ char *p = NULL;
         int r, parsed[16];
 
-        assert(ret);
-
         if (!is_efi_boot())
                 return -EOPNOTSUPP;