Skip to content
Commit ecd8b037 authored by Marek Vasut's avatar Marek Vasut Committed by Tom Rini
Browse files

net: dm9000: Correctly handle empty FIFO



Assign packet pointer only in case the MAC reports anything in the FIFO.
In case the MAC indicates empty FIFO, return 0 to pass that information
to the network stack.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
parent 01207947
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment