Skip to content
Commit cceeba3f authored by Lukasz Majewski's avatar Lukasz Majewski Committed by Carles Cufí
Browse files

drivers: net: tc6: Do not send extra last chunk when not required



Current code sends extra, last chunk, when packet's size is a multiple
of chunk size (i.e. 64 bytes).

This patch fixes this issue by checking this corner case - i.e. if
the modulo division equals to zero.

Signed-off-by: default avatarLukasz Majewski <lukma@denx.de>
parent 59980d5c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment