Explorar o código

misc __user misannotations (pointless casts to long)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Al Viro %!s(int64=17) %!d(string=hai) anos
pai
achega
74dbf719ed
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/lguest/lguest_user.c

+ 1 - 1
drivers/lguest/lguest_user.c

@@ -189,7 +189,7 @@ static int initialize(struct file *file, const unsigned long __user *input)
 	}
 	}
 
 
 	/* Populate the easy fields of our "struct lguest" */
 	/* Populate the easy fields of our "struct lguest" */
-	lg->mem_base = (void __user *)(long)args[0];
+	lg->mem_base = (void __user *)args[0];
 	lg->pfn_limit = args[1];
 	lg->pfn_limit = args[1];
 
 
 	/* This is the first cpu (cpu 0) and it will start booting at args[3] */
 	/* This is the first cpu (cpu 0) and it will start booting at args[3] */