Skip to content
Commit 28e43a51 authored by Roel Kluin's avatar Roel Kluin Committed by Roland Dreier
Browse files

RDMA/nes: Fix off-by-one bugs in reset_adapter_ne020() and init_serdes()



With a postfix increment, i is incremented one past 10K/5K before the
loop ends, so the error messages will be displayed too soon if the
test succeeds on the last iteration.  Fix the comparisons to be >
instead of >=.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 210af919
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment