aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/uverbs_main.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-11-25 20:58:45 +0200
committerDoug Ledford <dledford@redhat.com>2018-12-03 12:01:58 -0500
commit974d6b4b2bc33c53334e086a40715b384f48f2e2 (patch)
tree86a6308f6ce39cc4127f0e4f03dd8348e4b7effd /drivers/infiniband/core/uverbs_main.c
parentRDMA/uverbs: Do not check the input length on create_cq/qp paths (diff)
downloadlinux-dev-974d6b4b2bc33c53334e086a40715b384f48f2e2.tar.xz
linux-dev-974d6b4b2bc33c53334e086a40715b384f48f2e2.zip
RDMA/uverbs: Use only attrs for the write() handler signature
All of the old arguments can be derived from the uverbs_attr_bundle structure, so get rid of the redundant arguments. Most of the prior work has been removing users of the arguments to allow this to be a simple patch. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/core/uverbs_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c
index 762a6acbff80..96a5f89bbb75 100644
--- a/drivers/infiniband/core/uverbs_main.c
+++ b/drivers/infiniband/core/uverbs_main.c
@@ -739,8 +739,6 @@ static ssize_t ib_uverbs_write(struct file *filp, const char __user *buf,
ib_uverbs_init_udata_buf_or_null(
&bundle.ucore, buf, u64_to_user_ptr(response),
in_len, out_len);
-
- ret = method_elm->handler(&bundle, buf, in_len, out_len);
} else {
buf += sizeof(ex_hdr);
@@ -754,9 +752,9 @@ static ssize_t ib_uverbs_write(struct file *filp, const char __user *buf,
ex_hdr.provider_in_words * 8,
ex_hdr.provider_out_words * 8);
- ret = method_elm->handler_ex(&bundle, &bundle.ucore);
}
+ ret = method_elm->handler(&bundle);
out_unlock:
srcu_read_unlock(&file->device->disassociate_srcu, srcu_key);
return (ret) ? : count;