diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2015-05-11 07:52:29 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-05-11 23:43:52 +0200 |
commit | e76ff06a959336fae64b53c36ec60940ca6ef04f (patch) | |
tree | 07cd253c4a917d5706314cff1a98c3080dd8ddb2 /kernel | |
parent | 9497d7380b9c450830190c75aa43b25c278bb1f9 (diff) | |
download | linux-e76ff06a959336fae64b53c36ec60940ca6ef04f.tar.bz2 |
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')
-rw-r--r-- | kernel/livepatch/core.c | 2 |
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 { |