Commit c9a4bb41 authored by Al Viro's avatar Al Viro

drivers/fpga/dfl-fme-pr.c: get rid of pointless access_ok()

followed by copy_from_user()
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 5f599098
......@@ -97,10 +97,6 @@ static int fme_pr(struct platform_device *pdev, unsigned long arg)
return -EINVAL;
}
if (!access_ok((void __user *)(unsigned long)port_pr.buffer_address,
port_pr.buffer_size))
return -EFAULT;
/*
* align PR buffer per PR bandwidth, as HW ignores the extra padding
* data automatically.
......
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