aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-04-22 23:05:57 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2020-05-29 11:04:56 -0400
commitc9a4bb416676dc1d67acc7fed51f77d8b371ab51 (patch)
tree79b38c69dbc84307fc770149aec8b395c5e957ae
parent5f599098f7608deb4fa063486452f8f1dfd8a72c (diff)
downloadmicrowatt-c9a4bb416676dc1d67acc7fed51f77d8b371ab51.tar.gz
drivers/fpga/dfl-fme-pr.c: get rid of pointless access_ok()
followed by copy_from_user() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--drivers/fpga/dfl-fme-pr.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/fpga/dfl-fme-pr.c b/drivers/fpga/dfl-fme-pr.c
index a233a53db70817..1194c0e850e074 100644
--- a/drivers/fpga/dfl-fme-pr.c
+++ b/drivers/fpga/dfl-fme-pr.c
@@ -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.