aboutsummaryrefslogtreecommitdiff
path: root/hw/net/net_rx_pkt.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2017-02-15 16:31:43 +0800
committerJason Wang <jasowang@redhat.com>2017-03-06 11:46:02 +0800
commit290e6e113b65ae86cfa37f2ff5ca5eb57dbf824c (patch)
treee978da629007d2a96cb63b9bce05bf33cab79cf3 /hw/net/net_rx_pkt.c
parent17783ac828adc694d986698d2d7014aedfeb48c6 (diff)
net: Remove useless local var pkt
This has been pointless since commit 605d52e62, which was a search-and-replace, overlooked the redundancy. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Dmitry Fleytman <dmitry@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net/net_rx_pkt.c')
-rw-r--r--hw/net/net_rx_pkt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/net/net_rx_pkt.c b/hw/net/net_rx_pkt.c
index 1019b50c18..7f928d7339 100644
--- a/hw/net/net_rx_pkt.c
+++ b/hw/net/net_rx_pkt.c
@@ -159,7 +159,6 @@ void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt,
void net_rx_pkt_dump(struct NetRxPkt *pkt)
{
#ifdef NET_RX_PKT_DEBUG
- NetRxPkt *pkt = (NetRxPkt *)pkt;
assert(pkt);
printf("RX PKT: tot_len: %d, vlan_stripped: %d, vlan_tag: %d\n",