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

Commit bff14bb6 authored by Dean Luick's avatar Dean Luick Committed by Greg Kroah-Hartman
Browse files

staging/rdma/hfi1: Remove incorrect link credit check



Remove an invalid sanity check that compares the local link
credits with the peer link credits.  The two have no dependency
on each other.

Reviewed-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarDean Luick <dean.luick@intel.com>
Signed-off-by: default avatarJubin John <jubin.john@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2ce6bf22
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -10496,8 +10496,7 @@ static int set_buffer_control(struct hfi1_devdata *dd,
		new_bc->vl[i].shared = 0;
	}
	new_total += be16_to_cpu(new_bc->overall_shared_limit);
	if (new_total > (u32)dd->link_credits)
		return -EINVAL;

	/* fetch the current values */
	get_buffer_control(dd, &cur_bc, &cur_total);