mirror of
https://github.com/dynup/kpatch
synced 2025-01-08 22:29:34 +00:00
cleanup: remove unneeded patches variable
Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
parent
d55523f624
commit
108cd9f95e
@ -71,13 +71,12 @@ static struct kobj_attribute patch_enabled_attr =
|
||||
|
||||
static int __init patch_init(void)
|
||||
{
|
||||
struct kpatch_patch *patches;
|
||||
int ret;
|
||||
|
||||
kpmod.mod = THIS_MODULE;
|
||||
kpmod.patches = (struct kpatch_patch *)&__kpatch_patches;
|
||||
kpmod.patches_nr = (&__kpatch_patches_end - &__kpatch_patches) /
|
||||
sizeof(*patches);
|
||||
sizeof(*kpmod.patches);
|
||||
|
||||
patch_kobj = kobject_create_and_add(THIS_MODULE->name,
|
||||
kpatch_patches_kobj);
|
||||
|
Loading…
Reference in New Issue
Block a user