diff options
author | Michael J. Ruhl <michael.j.ruhl@intel.com> | 2017-09-26 07:04:29 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-09-29 11:08:06 -0400 |
commit | 8a41da09e6189598fea2750e64c620cf83f22aba (patch) | |
tree | cc1797fba2ddee7034cdcf405f75ea9af6649c73 /drivers/infiniband/hw/hfi1/user_exp_rcv.c | |
parent | 3920eef7a7e0cd90364944e6b3b9be3f9e73e4cc (diff) | |
download | talos-obmc-linux-8a41da09e6189598fea2750e64c620cf83f22aba.tar.gz talos-obmc-linux-8a41da09e6189598fea2750e64c620cf83f22aba.zip |
IB/hfi1: Refactor hfi_user_exp_rcv_invalid() IOCTLs
The IOCTL is a bit unwieldy. Refactor to a common pattern.
Refactor _TID_INVAL_READ IOCTLs.
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/user_exp_rcv.c')
-rw-r--r-- | drivers/infiniband/hw/hfi1/user_exp_rcv.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/hfi1/user_exp_rcv.c b/drivers/infiniband/hw/hfi1/user_exp_rcv.c index ff9ad69dc0a7..c1c596adcd01 100644 --- a/drivers/infiniband/hw/hfi1/user_exp_rcv.c +++ b/drivers/infiniband/hw/hfi1/user_exp_rcv.c @@ -546,9 +546,6 @@ int hfi1_user_exp_rcv_invalid(struct hfi1_filedata *fd, u32 *array; int ret = 0; - if (!fd->invalid_tids) - return -EINVAL; - /* * copy_to_user() can sleep, which will leave the invalid_lock * locked and cause the MMU notifier to be blocked on the lock |