Skip to content

Commit

Permalink
lan9118: Drop lan9118_can_receive
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fam Zheng authored and stefanhaRH committed Jul 20, 2015
1 parent da69028 commit b49b8c5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions hw/net/lan9118.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
};
Expand Down

0 comments on commit b49b8c5

Please sign in to comment.