livepatch: match return value to function signature
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 11 May 2015 05:52:29 +0000 (07:52 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 11 May 2015 21:43:52 +0000 (23:43 +0200)
commite76ff06a959336fae64b53c36ec60940ca6ef04f
tree07cd253c4a917d5706314cff1a98c3080dd8ddb2
parent9497d7380b9c450830190c75aa43b25c278bb1f9
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>
kernel/livepatch/core.c