efi-loader: drop harmful assertion

This fixes a bug introduced by 7be4b23649.

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

Fixes #22862.
This commit is contained in:
Yu Watanabe
2022-03-25 14:29:44 +09:00
parent 00adc340bb
commit 8603a229e9
-2
View 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;