Skip to contentSkip to conversation

cleanup xenpage

PATCH New Akio Takebe 1 participant 1 message Jun 10, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cleanup xenpage

Hi,

I remove xenpage in linux-2.6-xen-sparse/mm/memory.c This xenpage isn't used already.

linux-2.6-xen-sparse/mm/memory.c +0 -1
diff -r b87ff075dab9 linux-2.6-xen-sparse/mm/memory.c
@@ -968,7 +968,6 @@ int get_user_pages(struct task_struct *t
 {
 	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 *t
 		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];

Best Regards,

Akio Takebe

linux-2.6-xen-sparse/mm/memory.c +0 -2
diff -r b87ff075dab9 linux-2.6-xen-sparse/mm/memory.c
@@ -968,7 +968,6 @@ int get_user_pages(struct task_struct *t
 {
 	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 *t
 		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];

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel