lwiperf: Simplify #if LWIPERF_CHECK_RX_DATA guard

The variable i is equal to q->len after exit the for loop.
Check the received data should not change the logic of update packet_idx.
So let's simplify the code a bit.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
1 file changed