qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>, Jan Kiszka <jan.kiszka@web.de>
Subject: [Qemu-devel] [PATCH 3/3] lan9118: Drop lan9118_can_receive
Date: Wed,  1 Jul 2015 15:10:47 +0800	[thread overview]
Message-ID: <1435734647-8371-4-git-send-email-famz@redhat.com> (raw)
In-Reply-To: <1435734647-8371-1-git-send-email-famz@redhat.com>

True is the default.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 hw/net/lan9118.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/hw/net/lan9118.c b/hw/net/lan9118.c
index f169c38..4f0e840 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,
 };
-- 
2.4.3

  parent reply	other threads:[~2015-07-01  7:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-01  7:10 [Qemu-devel] [PATCH 0/3] hw/net: Drop unnecessary .can_receive functions Fam Zheng
2015-07-01  7:10 ` [Qemu-devel] [PATCH 1/3] musicpal: Drop eth_can_receive Fam Zheng
2015-07-01  7:10 ` [Qemu-devel] [PATCH 2/3] etraxfs_eth: " Fam Zheng
2015-07-01  7:10 ` Fam Zheng [this message]
2015-07-13  5:44 ` [Qemu-devel] [PATCH 0/3] hw/net: Drop unnecessary .can_receive functions Fam Zheng
2015-07-13  6:10 ` Jason Wang
2015-07-20 16:47 ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1435734647-8371-4-git-send-email-famz@redhat.com \
    --to=famz@redhat.com \
    --cc=jan.kiszka@web.de \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).