summaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>2016-08-10 07:34:27 +0200
committerDoug Ledford <dledford@redhat.com>2016-08-22 14:31:43 -0400
commit57bb562ad4651453c9f20d506a65e46e4d11042f (patch)
treee402f54b616117b6c2413ff15e571b9088149083 /drivers/infiniband
parent476d95bd02240894806ebe64f1c4dcf6dbba87f4 (diff)
downloadlwn-57bb562ad4651453c9f20d506a65e46e4d11042f.tar.gz
lwn-57bb562ad4651453c9f20d506a65e46e4d11042f.zip
IB/hfi1: Add missing error code assignment before test
It is likely that checking the result of 'setup_ctxt' is expected here. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Acked-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/hfi1/file_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hfi1/file_ops.c b/drivers/infiniband/hw/hfi1/file_ops.c
index 1ecbec192358..ed76be39b20b 100644
--- a/drivers/infiniband/hw/hfi1/file_ops.c
+++ b/drivers/infiniband/hw/hfi1/file_ops.c
@@ -222,7 +222,7 @@ static long hfi1_file_ioctl(struct file *fp, unsigned int cmd,
ret = assign_ctxt(fp, &uinfo);
if (ret < 0)
return ret;
- setup_ctxt(fp);
+ ret = setup_ctxt(fp);
if (ret)
return ret;
ret = user_init(fp);