coccinelle: generalize pidref_is_set() to =~ _is_set()

Our coccinelle/check-pointer-deref.cocci checker has a special
case for `assert(pidref_is_set(param))`. It turns out we can
generalize this and catch the following:
- iovec_is_set
- sd_dhcp_duid_is_set
- sd_dhcp_client_id_is_set
This commit is contained in:
Michael Vogt
2026-03-27 11:14:49 +01:00
parent be176c0c91
commit bf2d68433d
2 changed files with 7 additions and 5 deletions
-1
View File
@@ -74,7 +74,6 @@ EFI_STATUS initrd_register(
EFI_HANDLE handle;
struct initrd_loader *loader;
POINTER_MAY_BE_NULL(initrd);
assert(ret_initrd_handle);
/* If no initrd is specified we'll not install any. This avoids registration of the protocol for that