History

livepatch: match return value to function signature

klp_initialized() should return bool but is actually returning struct kobject * - convert it to a boolean explicitly.

Nicholas Mc Guire committed 11 years ago

Commit e76ff061 parent 9497d731 file · +1 −1Browse files

Showing the changes to kernel/livepatch (1 of 1 file). Show all

Unified · Split

kernel/livepatch/core.c+1−1
@@ -128,7 +128,7 @@ static bool klp_is_patch_registered(struct klp_patch *patch) · 127 unmodified lines
128128
129129 static bool klp_initialized(void)
130130 {
131− return klp_root_kobj;
131+ return !!klp_root_kobj;
132132 }
133133
134134 struct klp_find_arg {