Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e76ff06a authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Jiri Kosina
Browse files

livepatch: match return value to function signature



klp_initialized() should return bool but is actually returning
struct kobject * - convert it to a boolean explicitly.

Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: default avatarJiri Slaby <jslaby@suse.cz>
Acked-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 9497d738
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ static bool klp_is_patch_registered(struct klp_patch *patch)

static bool klp_initialized(void)
{
	return klp_root_kobj;
	return !!klp_root_kobj;
}

struct klp_find_arg {