From: Jubin John Date: Mon, 15 Feb 2016 04:22:09 +0000 (-0800) Subject: staging/rdma/hfi1: Remove else after break X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=edddfca00eecd0949a9adccf8dd490478f641cbc;p=linux-beck.git staging/rdma/hfi1: Remove else after break Remove else after break to fix checkpatch warning: WARNING: else is not generally useful after a break or return Reviewed-by: Dennis Dalessandro Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn Signed-off-by: Jubin John Signed-off-by: Doug Ledford --- diff --git a/drivers/staging/rdma/hfi1/qp.c b/drivers/staging/rdma/hfi1/qp.c index 4f40c987303b..a17cb732277e 100644 --- a/drivers/staging/rdma/hfi1/qp.c +++ b/drivers/staging/rdma/hfi1/qp.c @@ -329,11 +329,9 @@ __be32 hfi1_compute_aeth(struct rvt_qp *qp) if (credit_table[x] > credits) { max = x; } else { - if (min == x) { + if (min == x) break; - } else { - min = x; - } + min = x; } } aeth |= x << HFI1_AETH_CREDIT_SHIFT;