summaryrefslogtreecommitdiffstats
path: root/kernel/livepatch
diff options
context:
space:
mode:
authorNicholas Mc Guire2015-05-11 07:52:29 +0200
committerJiri Kosina2015-05-11 23:43:52 +0200
commite76ff06a959336fae64b53c36ec60940ca6ef04f (patch)
tree07cd253c4a917d5706314cff1a98c3080dd8ddb2 /kernel/livepatch
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik... (diff)
downloadkernel-qcow2-linux-e76ff06a959336fae64b53c36ec60940ca6ef04f.tar.gz
kernel-qcow2-linux-e76ff06a959336fae64b53c36ec60940ca6ef04f.tar.xz
kernel-qcow2-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 {