mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -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:
parent
2ce6bf2292
commit
bff14bb66c
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue