From: Harish Chegondi Date: Sat, 5 Mar 2016 16:49:24 +0000 (-0800) Subject: IB/hfi1: Add the break statement that was removed in an earlier patch X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=42d6ec19c918cb5bc6d14769e24240dce8f81687;p=linux-beck.git IB/hfi1: Add the break statement that was removed in an earlier patch The break statement was unintentionally removed in this patch commit 41ca419abc0ca7ee65d765408cdc1a7fed2897a3 ("staging/rdma/hfi1: Remove hfi1 MR and hfi1 specific qp type") Reviewed-by: Mike Marciniszyn Signed-off-by: Harish Chegondi Signed-off-by: Doug Ledford --- diff --git a/drivers/staging/rdma/hfi1/ruc.c b/drivers/staging/rdma/hfi1/ruc.c index 5d84981a6b51..aa53859503ee 100644 --- a/drivers/staging/rdma/hfi1/ruc.c +++ b/drivers/staging/rdma/hfi1/ruc.c @@ -470,6 +470,7 @@ again: goto inv_err; do_write: if (wqe->length == 0) + break; if (unlikely(!rvt_rkey_ok(qp, &qp->r_sge.sge, wqe->length, wqe->rdma_wr.remote_addr, wqe->rdma_wr.rkey,