Skip to content

Commit aac9a9b

Browse files
committed
openrisc: uaccess: Remove unused macro __addr_ok
Since commit b48b2c3 ("openrisc: use generic strnlen_user() function") the macro __addr_ok is no longer used. It is safe to remove so this patch removes it. Signed-off-by: Stafford Horne <[email protected]>
1 parent af84b16 commit aac9a9b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/openrisc/include/asm/uaccess.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ static inline int __range_ok(unsigned long addr, unsigned long size)
5555
return size <= fs && addr <= (fs - size);
5656
}
5757

58-
/* Ensure that addr is below task's addr_limit */
59-
#define __addr_ok(addr) ((unsigned long) addr < get_fs())
60-
6158
#define access_ok(addr, size) \
6259
({ \
6360
__range_ok((unsigned long)(addr), (size)); \

0 commit comments

Comments
 (0)