Commit 6366dfa6 authored by Dennis Dalessandro's avatar Dennis Dalessandro Committed by Doug Ledford

staging/rdma/hfi1: Clean up return handling

Return directly from rvt_resize_cq rather than use a goto/label.
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Reviewed-by: default avatarHarish Chegondi <harish.chegondi@intel.com>
Signed-off-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent abd712da
...@@ -432,7 +432,7 @@ int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) ...@@ -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, ret = ib_copy_to_udata(udata, &ip->offset,
sizeof(ip->offset)); sizeof(ip->offset));
if (ret) if (ret)
goto bail; return ret;
} }
spin_lock_irq(&rdi->pending_lock); spin_lock_irq(&rdi->pending_lock);
...@@ -447,9 +447,7 @@ int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata) ...@@ -447,9 +447,7 @@ int rvt_resize_cq(struct ib_cq *ibcq, int cqe, struct ib_udata *udata)
spin_unlock_irq(&cq->lock); spin_unlock_irq(&cq->lock);
bail_free: bail_free:
vfree(wc); vfree(wc);
bail:
return ret; return ret;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment