Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edddfca0 authored by Jubin John's avatar Jubin John Committed by Doug Ledford
Browse files

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: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Reviewed-by: default avatarMike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: default avatarJubin John <jubin.john@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent e490974e
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -329,13 +329,11 @@ __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;
	}
	}
	return cpu_to_be32(aeth);
	return cpu_to_be32(aeth);