mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 09:01:36 -04:00
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: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Jubin John <jubin.john@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2ce6bf2292
commit
bff14bb66c
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user