summaryrefslogtreecommitdiffstats
path: root/kernel/livepatch
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2015-05-11 07:52:29 +0200
committerJiri Kosina <jkosina@suse.cz>2015-05-11 23:43:52 +0200
commite76ff06a959336fae64b53c36ec60940ca6ef04f (patch)
tree07cd253c4a917d5706314cff1a98c3080dd8ddb2 /kernel/livepatch
parent9497d7380b9c450830190c75aa43b25c278bb1f9 (diff)
downloadlinux-e76ff06a959336fae64b53c36ec60940ca6ef04f.tar.gz
linux-e76ff06a959336fae64b53c36ec60940ca6ef04f.tar.bz2
linux-e76ff06a959336fae64b53c36ec60940ca6ef04f.zip
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>
Diffstat (limited to 'kernel/livepatch')
-rw-r--r--kernel/livepatch/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c
index 284e2691e380..c5e631cd151b 100644
--- a/kernel/livepatch/core.c
+++ b/kernel/livepatch/core.c
@@ -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 {