[LINUX] Clean up unused variable in mm/memory.c.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 12 Jun 2006 08:57:23 +0000 (09:57 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 12 Jun 2006 08:57:23 +0000 (09:57 +0100)
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
linux-2.6-xen-sparse/mm/memory.c

index 29c9095487f9ef7fd5708e4063e087284a6b52d5..827a0a37a4cf94c9563e248b35b0586b0bc25b38 100644 (file)
@@ -968,7 +968,6 @@ int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
 {
        int i;
        unsigned int vm_flags;
-       int xenpage = 0;
 
        /* 
         * Require read or write permissions.
@@ -1026,7 +1025,6 @@ int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
                if (vma && (vma->vm_flags & VM_FOREIGN)) {
                        struct page **map = vma->vm_private_data;
                        int offset = (start - vma->vm_start) >> PAGE_SHIFT;
-                       xenpage =1;
                        if (map[offset] != NULL) {
                                if (pages) {
                                        struct page *page = map[offset];