From: Namhyung Kim Date: Tue, 22 Mar 2011 23:33:41 +0000 (-0700) Subject: vmalloc: remove confusing comment on vwrite() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a42931bf9c02fbf3628a27a2a5c55d2b83e4ff20;p=linux-beck.git vmalloc: remove confusing comment on vwrite() KM_USER1 is never used for vwrite() path so the caller doesn't need to guarantee it is not used. Only the caller should guarantee is KM_USER0 and it is commented already. Signed-off-by: Namhyung Kim Acked-by: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmalloc.c b/mm/vmalloc.c index fc77adabb5e3..5d6030235d7a 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -2003,8 +2003,6 @@ finished: * should know vmalloc() area is valid and can use memcpy(). * This is for routines which have to access vmalloc area without * any informaion, as /dev/kmem. - * - * The caller should guarantee KM_USER1 is not used. */ long vwrite(char *buf, char *addr, unsigned long count)