ne2000: Drop ne2000_can_receive
commitc5a93780453e6da919287c17e873c843544ef2a3
authorFam Zheng <famz@redhat.com>
Wed, 1 Jul 2015 05:25:05 +0000 (1 13:25 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 2 Sep 2015 13:51:07 +0000 (2 14:51 +0100)
tree86ef557838bb45fbb948ec3408dc5a36b1351db6
parent2734a20b8161831ba68c9166014e00522599d1e2
ne2000: Drop ne2000_can_receive

ne2000_receive already checks the same conditions and drops the packet
if it's not ready, removing the .can_receive callback avoids the
necessity to add explicit flushes when the conditions turn true (which
is required by the new semantics of .can_receive since 6e99c63
"net/socket: Drop net_socket_can_send").

Plus the "return 1" if E8390_STOP is also suspicious.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/ne2000-isa.c
hw/net/ne2000.c
hw/net/ne2000.h