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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user