From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZACAd-0008Tl-LZ for qemu-devel@nongnu.org; Wed, 01 Jul 2015 03:11:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZACAc-0000TR-Oh for qemu-devel@nongnu.org; Wed, 01 Jul 2015 03:10:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZACAc-0000TD-JC for qemu-devel@nongnu.org; Wed, 01 Jul 2015 03:10:58 -0400 From: Fam Zheng Date: Wed, 1 Jul 2015 15:10:46 +0800 Message-Id: <1435734647-8371-3-git-send-email-famz@redhat.com> In-Reply-To: <1435734647-8371-1-git-send-email-famz@redhat.com> References: <1435734647-8371-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] etraxfs_eth: Drop eth_can_receive List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Jan Kiszka True is the default. Signed-off-by: Fam Zheng --- hw/net/etraxfs_eth.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hw/net/etraxfs_eth.c b/hw/net/etraxfs_eth.c index 4773dea..d600275 100644 --- a/hw/net/etraxfs_eth.c +++ b/hw/net/etraxfs_eth.c @@ -520,11 +520,6 @@ static int eth_match_groupaddr(ETRAXFSEthState *eth, const unsigned char *sa) return match; } -static int eth_can_receive(NetClientState *nc) -{ - return 1; -} - static ssize_t eth_receive(NetClientState *nc, const uint8_t *buf, size_t size) { unsigned char sa_bcast[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; @@ -584,7 +579,6 @@ static const MemoryRegionOps eth_ops = { static NetClientInfo net_etraxfs_info = { .type = NET_CLIENT_OPTIONS_KIND_NIC, .size = sizeof(NICState), - .can_receive = eth_can_receive, .receive = eth_receive, .link_status_changed = eth_set_link, }; -- 2.4.3