diff options
author | Fam Zheng <famz@redhat.com> | 2015-07-01 15:10:47 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-07-20 17:47:24 +0100 |
commit | b49b8c572f885ea2b16fc744e8837e974df34401 (patch) | |
tree | 57f2b2675f4e658150a00770a963b3cac183c623 | |
parent | da69028261abd12dbf974754e69d017f6e8710b5 (diff) |
lan9118: Drop lan9118_can_receive
True is the default.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Message-id: 1435734647-8371-4-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r-- | hw/net/lan9118.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/net/lan9118.c b/hw/net/lan9118.c index f169c383df..4f0e840f0e 100644 --- a/hw/net/lan9118.c +++ b/hw/net/lan9118.c @@ -461,11 +461,6 @@ static void lan9118_reset(DeviceState *d) lan9118_reload_eeprom(s); } -static int lan9118_can_receive(NetClientState *nc) -{ - return 1; -} - static void rx_fifo_push(lan9118_state *s, uint32_t val) { int fifo_pos; @@ -1312,7 +1307,6 @@ static const MemoryRegionOps lan9118_16bit_mem_ops = { static NetClientInfo net_lan9118_info = { .type = NET_CLIENT_OPTIONS_KIND_NIC, .size = sizeof(NICState), - .can_receive = lan9118_can_receive, .receive = lan9118_receive, .link_status_changed = lan9118_set_link, }; |