arm64: uaccess: Remove redundant __force from addr cast in __range_ok
authorWill Deacon <will.deacon@arm.com>
Mon, 3 Jul 2017 13:37:46 +0000 (14:37 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 20 Jul 2017 09:20:48 +0000 (10:20 +0100)
commitc396fe7f0c2efdf6c02d723f7bd492c58725c822
tree5f33351fcb1d4b16f1d594c58b593711995a7b47
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
arm64: uaccess: Remove redundant __force from addr cast in __range_ok

Casting a pointer to an integral type doesn't require a __force
attribute, because you'll need to cast back to a pointer in order to
dereference the thing anyway.

This patch removes the redundant __force cast from __range_ok.

Reported-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/uaccess.h