staging/rdma/hfi1: Remove incorrect link credit check
authorDean Luick <dean.luick@intel.com>
Fri, 18 Dec 2015 00:24:13 +0000 (19:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 22:01:14 +0000 (14:01 -0800)
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>
drivers/staging/rdma/hfi1/chip.c

index ec4bac00dbdad2f23a718362570fbc5bc764223e..bbe5ad85cec07d47c460e35b53a0dae1e9672ed4 100644 (file)
@@ -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);