From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHEpB-0006s9-80 for qemu-devel@nongnu.org; Mon, 20 Jul 2015 13:25:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHEp8-0000ts-1z for qemu-devel@nongnu.org; Mon, 20 Jul 2015 13:25:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHEp7-0000tn-TV for qemu-devel@nongnu.org; Mon, 20 Jul 2015 13:25:53 -0400 From: Stefan Hajnoczi Date: Mon, 20 Jul 2015 18:25:23 +0100 Message-Id: <1437413125-24888-6-git-send-email-stefanha@redhat.com> In-Reply-To: <1437413125-24888-1-git-send-email-stefanha@redhat.com> References: <1437413125-24888-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PULL for-2.4 5/7] 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 , Fam Zheng , Stefan Hajnoczi From: Fam Zheng True is the default. Signed-off-by: Fam Zheng Reviewed-by: Jason Wang Message-id: 1435734647-8371-3-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi --- 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