/* @key: registration key Return: valid registration key or NULL  */
static struct efi_register_notify_event* efi_check_register_notify_event(void *key)
/* @key: registration key Return: valid registration key or NULL  */
static struct efi_register_notify_event* efi_check_register_notify_event(void *key)
{
	struct efi_register_notify_event *event;
	list_for_each_entry(event, &efi_register_notify_events, link) {
		if (event == (struct efi_register_notify_event *)key)
			return event;
	}
	return NULL;
}