asm-generic: uaccess: fix up local access_ok() usage
authorMike Frysinger <vapier@gentoo.org>
Sun, 14 Jun 2009 06:00:03 +0000 (02:00 -0400)
committerArnd Bergmann <arnd@arndb.de>
Fri, 19 Jun 2009 12:58:08 +0000 (14:58 +0200)
commita9ede5b355aabd667ed690f858c925a23927027b
treeee3fe26530679c33fa3aad5386e6961b3bf399e7
parent9844813f226f6d07e1544e915529cb88f4fcb868
asm-generic: uaccess: fix up local access_ok() usage

There's no reason that I can see to use the short __access_ok() form
directly when the access_ok() is clearer in intent and for most people,
expands to the same C code (i.e. always specify the first field -- access
type).  Not all no-mmu systems lack memory protection, so the read/write
could feasibly be checked.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/uaccess.h