arm64: uaccess: Cleanup get/put_user()
authorJulien Thierry <julien.thierry@arm.com>
Tue, 15 Jan 2019 13:58:26 +0000 (13:58 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 25 Jan 2019 12:30:46 +0000 (12:30 +0000)
commit13e4cdd785867a632516f9cb5dfbe5ba20822820
treecb9e8dfa54f6c8da5b3f41f8c4be5c61cbfd0200
parent5b498e139fb55e179e841bb5e55168ce4ba631b5
arm64: uaccess: Cleanup get/put_user()

__get/put_user_check() macro is made to return a value but this is never
used. Get rid of them and just use directly __get/put_user_error() as
a statement, reducing macro indirection.

Also, take this opportunity to rename __get/put_user_err() as it gets
a bit confusing having them along __get/put_user_error().

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/uaccess.h