Commit c9a4bb41 authored by Al Viro's avatar Al Viro
Browse files

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
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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.