From: Thomas Huth <thuth@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org, qemu-trivial@nongnu.org
Cc: Dmitry Fleytman <dmitry@daynix.com>,
Thomas Huth <thuth@linux.vnet.ibm.com>
Subject: [Qemu-devel] [PATCH v2 2/7] vmxnet: Remove unused function vmxnet_rx_pkt_get_num_frags()
Date: Sat, 14 Mar 2015 07:19:29 +0100 [thread overview]
Message-ID: <1426313974-25607-3-git-send-email-thuth@linux.vnet.ibm.com> (raw)
In-Reply-To: <1426313974-25607-1-git-send-email-thuth@linux.vnet.ibm.com>
The function is not used anymore and thus can be deleted.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Cc: Dmitry Fleytman <dmitry@daynix.com>
---
hw/net/vmxnet_rx_pkt.c | 7 -------
hw/net/vmxnet_rx_pkt.h | 9 ---------
2 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/hw/net/vmxnet_rx_pkt.c b/hw/net/vmxnet_rx_pkt.c
index a40e346..acbca6a 100644
--- a/hw/net/vmxnet_rx_pkt.c
+++ b/hw/net/vmxnet_rx_pkt.c
@@ -172,13 +172,6 @@ bool vmxnet_rx_pkt_has_virt_hdr(struct VmxnetRxPkt *pkt)
return pkt->has_virt_hdr;
}
-uint16_t vmxnet_rx_pkt_get_num_frags(struct VmxnetRxPkt *pkt)
-{
- assert(pkt);
-
- return pkt->vec_len;
-}
-
uint16_t vmxnet_rx_pkt_get_vlan_tag(struct VmxnetRxPkt *pkt)
{
assert(pkt);
diff --git a/hw/net/vmxnet_rx_pkt.h b/hw/net/vmxnet_rx_pkt.h
index 6b2c60e..5f8352a 100644
--- a/hw/net/vmxnet_rx_pkt.h
+++ b/hw/net/vmxnet_rx_pkt.h
@@ -114,15 +114,6 @@ bool vmxnet_rx_pkt_is_vlan_stripped(struct VmxnetRxPkt *pkt);
bool vmxnet_rx_pkt_has_virt_hdr(struct VmxnetRxPkt *pkt);
/**
- * returns number of frags attached to the packet
- *
- * @pkt: packet
- * @ret: number of frags
- *
- */
-uint16_t vmxnet_rx_pkt_get_num_frags(struct VmxnetRxPkt *pkt);
-
-/**
* attach data to rx packet
*
* @pkt: packet
--
1.7.1
next prev parent reply other threads:[~2015-03-14 6:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-14 6:19 [Qemu-devel] [PATCH v2 0/7] Remove more unused functions Thomas Huth
2015-03-14 6:19 ` [Qemu-devel] [PATCH v2 1/7] migration: Remove " Thomas Huth
2015-03-17 13:44 ` Juan Quintela
2015-03-14 6:19 ` Thomas Huth [this message]
2015-03-14 7:35 ` [Qemu-devel] [PATCH v2 2/7] vmxnet: Remove unused function vmxnet_rx_pkt_get_num_frags() Dmitry Fleytman
2015-03-14 6:19 ` [Qemu-devel] [PATCH v2 3/7] pci: Remove unused function ich9_d2pbr_init() Thomas Huth
2015-03-18 13:20 ` Michael S. Tsirkin
2015-03-20 7:40 ` Thomas Huth
2015-03-14 6:19 ` [Qemu-devel] [PATCH v2 4/7] monitor: Remove unused functions Thomas Huth
2015-03-14 6:19 ` [Qemu-devel] [PATCH v2 5/7] usb: " Thomas Huth
2015-03-14 6:19 ` [Qemu-devel] [PATCH v2 6/7] util: " Thomas Huth
2015-03-14 6:19 ` [Qemu-devel] [PATCH v2 7/7] Remove various " Thomas Huth
2015-04-27 11:27 ` [Qemu-devel] [PATCH v2 0/7] Remove more " Michael Tokarev
2015-04-27 18:09 ` Stefan Weil
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=1426313974-25607-3-git-send-email-thuth@linux.vnet.ibm.com \
--to=thuth@linux.vnet.ibm.com \
--cc=dmitry@daynix.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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).