[PATCH AUTOSEL 4.14 13/35] qed: Fix reading wrong value in loop condition