summaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi/bt-bmc.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-29 20:42:14 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-11-10 08:48:42 -0500
commit24219d21c75f188d9e25053b0da22f2d698ca688 (patch)
tree6a161077f54ac7c038906ae102135691c0f20501 /drivers/char/ipmi/bt-bmc.c
parent50271d388fa4171565a8fdb995b3255f067e150d (diff)
downloadtalos-obmc-linux-24219d21c75f188d9e25053b0da22f2d698ca688.tar.gz
talos-obmc-linux-24219d21c75f188d9e25053b0da22f2d698ca688.zip
ipmi: get rid of pointless access_ok()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/char/ipmi/bt-bmc.c')
-rw-r--r--drivers/char/ipmi/bt-bmc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/char/ipmi/bt-bmc.c b/drivers/char/ipmi/bt-bmc.c
index 70d434bc1cbf..c4ef73c6f455 100644
--- a/drivers/char/ipmi/bt-bmc.c
+++ b/drivers/char/ipmi/bt-bmc.c
@@ -204,9 +204,6 @@ static ssize_t bt_bmc_read(struct file *file, char __user *buf,
ssize_t ret = 0;
ssize_t nread;
- if (!access_ok(VERIFY_WRITE, buf, count))
- return -EFAULT;
-
WARN_ON(*ppos);
if (wait_event_interruptible(bt_bmc->queue,
@@ -277,9 +274,6 @@ static ssize_t bt_bmc_write(struct file *file, const char __user *buf,
if (count < 5)
return -EINVAL;
- if (!access_ok(VERIFY_READ, buf, count))
- return -EFAULT;
-
WARN_ON(*ppos);
/*
OpenPOWER on IntegriCloud