diff options
author | Dennis Dalessandro <dennis.dalessandro@intel.com> | 2016-01-19 14:43:28 -0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-10 20:37:42 -0500 |
commit | 6366dfa6185ebb3709a2a05b64760d7c3abdfd95 (patch) | |
tree | a8c5918dc7a249e8ce5746a6045c17af24d6cddb /drivers/infiniband/sw | |
parent | abd712daeeb4461aee5ca5a2bfe2717dc22577ea (diff) | |
download | blackbird-op-linux-6366dfa6185ebb3709a2a05b64760d7c3abdfd95.tar.gz blackbird-op-linux-6366dfa6185ebb3709a2a05b64760d7c3abdfd95.zip |
staging/rdma/hfi1: Clean up return handling
Return directly from rvt_resize_cq rather than use a goto/label.
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Harish Chegondi <harish.chegondi@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r-- | drivers/infiniband/sw/rdmavt/cq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/sw/rdmavt/cq.c b/drivers/infiniband/sw/rdmavt/cq.c index 055aa71bed18..0e6dbe5904ff 100644 --- a/drivers/infiniband/sw/rdmavt/cq.c +++ b/drivers/infiniband/sw/rdmavt/cq.c @@ -432,7 +432,7 @@ int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) ret = ib_copy_to_udata(udata, &ip->offset, sizeof(ip->offset)); if (ret) - goto bail; + return ret; } spin_lock_irq(&rdi->pending_lock); @@ -447,9 +447,7 @@ bail_unlock: spin_unlock_irq(&cq->lock); bail_free: vfree(wc); -bail: return ret; - } /** |