OSDN Git Service

fs-verity: use u64_to_user_ptr()
authorEric Biggers <ebiggers@google.com>
Tue, 31 Dec 2019 17:54:08 +0000 (11:54 -0600)
committerEric Biggers <ebiggers@google.com>
Tue, 14 Jan 2020 21:28:28 +0000 (13:28 -0800)
commitda3a3da4e6c68459618a1043dcb12b450312a4e2
treeac7bd7709b0da2d6b743456fd0f3e2c8d25313ee
parent439bea104c3d212def0216aa8c0820872266c5b3
fs-verity: use u64_to_user_ptr()

<linux/kernel.h> already provides a macro u64_to_user_ptr().
Use it instead of open-coding the two casts.

No change in behavior.

Link: https://lore.kernel.org/r/20191231175408.20524-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/verity/enable.c