mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
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: 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>
This commit is contained in:
parent
9497d7380b
commit
e76ff06a95
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ static bool klp_is_patch_registered(struct klp_patch *patch)
|
||||||
|
|
||||||
static bool klp_initialized(void)
|
static bool klp_initialized(void)
|
||||||
{
|
{
|
||||||
return klp_root_kobj;
|
return !!klp_root_kobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct klp_find_arg {
|
struct klp_find_arg {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue