Commit aac9a9b5 authored by Stafford Horne's avatar Stafford Horne

openrisc: uaccess: Remove unused macro __addr_ok

Since commit b48b2c3e ("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: default avatarStafford Horne <shorne@gmail.com>
parent af84b16e
......@@ -55,9 +55,6 @@ static inline int __range_ok(unsigned long addr, unsigned long size)
return size <= fs && addr <= (fs - size);
}
/* Ensure that addr is below task's addr_limit */
#define __addr_ok(addr) ((unsigned long) addr < get_fs())
#define access_ok(addr, size) \
({ \
__range_ok((unsigned long)(addr), (size)); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment