mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
i915: alloc_oa_regs(): get rid of pointless access_ok()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
fd7cd8da23
commit
598caf1a40
|
|
@ -3949,9 +3949,6 @@ static struct i915_oa_reg *alloc_oa_regs(struct i915_perf *perf,
|
|||
if (!n_regs)
|
||||
return NULL;
|
||||
|
||||
if (!access_ok(regs, n_regs * sizeof(u32) * 2))
|
||||
return ERR_PTR(-EFAULT);
|
||||
|
||||
/* No is_valid function means we're not allowing any register to be programmed. */
|
||||
GEM_BUG_ON(!is_valid);
|
||||
if (!is_valid)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user