提交 edddfca0 编写于 作者: J Jubin John 提交者: Doug Ledford

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: NDennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: NIra Weiny <ira.weiny@intel.com>
Reviewed-by: NMike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: NJubin John <jubin.john@intel.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 e490974e
...@@ -329,11 +329,9 @@ __be32 hfi1_compute_aeth(struct rvt_qp *qp) ...@@ -329,11 +329,9 @@ __be32 hfi1_compute_aeth(struct rvt_qp *qp)
if (credit_table[x] > credits) { if (credit_table[x] > credits) {
max = x; max = x;
} else { } else {
if (min == x) { if (min == x)
break; break;
} else { min = x;
min = x;
}
} }
} }
aeth |= x << HFI1_AETH_CREDIT_SHIFT; aeth |= x << HFI1_AETH_CREDIT_SHIFT;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册