diff options
Diffstat (limited to 'drivers/lguest/core.c')
-rw-r--r-- | drivers/lguest/core.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c index 0bf1e4edf04d..6590558d1d31 100644 --- a/drivers/lguest/core.c +++ b/drivers/lguest/core.c | |||
@@ -42,7 +42,6 @@ DEFINE_MUTEX(lguest_lock); | |||
42 | static __init int map_switcher(void) | 42 | static __init int map_switcher(void) |
43 | { | 43 | { |
44 | int i, err; | 44 | int i, err; |
45 | struct page **pagep; | ||
46 | 45 | ||
47 | /* | 46 | /* |
48 | * Map the Switcher in to high memory. | 47 | * Map the Switcher in to high memory. |
@@ -110,11 +109,9 @@ static __init int map_switcher(void) | |||
110 | * This code actually sets up the pages we've allocated to appear at | 109 | * This code actually sets up the pages we've allocated to appear at |
111 | * switcher_addr. map_vm_area() takes the vma we allocated above, the | 110 | * switcher_addr. map_vm_area() takes the vma we allocated above, the |
112 | * kind of pages we're mapping (kernel pages), and a pointer to our | 111 | * kind of pages we're mapping (kernel pages), and a pointer to our |
113 | * array of struct pages. It increments that pointer, but we don't | 112 | * array of struct pages. |
114 | * care. | ||
115 | */ | 113 | */ |
116 | pagep = lg_switcher_pages; | 114 | err = map_vm_area(switcher_vma, PAGE_KERNEL_EXEC, lg_switcher_pages); |
117 | err = map_vm_area(switcher_vma, PAGE_KERNEL_EXEC, &pagep); | ||
118 | if (err) { | 115 | if (err) { |
119 | printk("lguest: map_vm_area failed: %i\n", err); | 116 | printk("lguest: map_vm_area failed: %i\n", err); |
120 | goto free_vma; | 117 | goto free_vma; |