Skip to content

Commit

Permalink
livepatch: match return value to function signature
Browse files Browse the repository at this point in the history
klp_initialized() should return bool but is actually returning
struct kobject * - convert it to a boolean explicitly.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: Jiri Slaby <jslaby@suse.cz
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Nicholas Mc Guire authored and Jiri Kosina committed May 11, 2015
1 parent 9497d73 commit e76ff06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/livepatch/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e76ff06

Please sign in to comment.