aboutsummaryrefslogtreecommitdiff
path: root/hw/net/ne2000-isa.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2015-07-01 13:25:05 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2015-09-02 14:51:07 +0100
commitc5a93780453e6da919287c17e873c843544ef2a3 (patch)
tree86ef557838bb45fbb948ec3408dc5a36b1351db6 /hw/net/ne2000-isa.c
parent2734a20b8161831ba68c9166014e00522599d1e2 (diff)
downloadqemu-c5a93780453e6da919287c17e873c843544ef2a3.zip
qemu-c5a93780453e6da919287c17e873c843544ef2a3.tar.gz
qemu-c5a93780453e6da919287c17e873c843544ef2a3.tar.bz2
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>
Diffstat (limited to 'hw/net/ne2000-isa.c')
-rw-r--r--hw/net/ne2000-isa.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/net/ne2000-isa.c b/hw/net/ne2000-isa.c
index 17e7199..18b0644 100644
--- a/hw/net/ne2000-isa.c
+++ b/hw/net/ne2000-isa.c
@@ -44,7 +44,6 @@ typedef struct ISANE2000State {
static NetClientInfo net_ne2000_isa_info = {
.type = NET_CLIENT_OPTIONS_KIND_NIC,
.size = sizeof(NICState),
- .can_receive = ne2000_can_receive,
.receive = ne2000_receive,
};