[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] net: Remove useless local var pkt

From: Jason Wang
Subject: Re: [Qemu-devel] [PATCH] net: Remove useless local var pkt
Date: Fri, 17 Feb 2017 10:31:35 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

On 2017年02月15日 16:58, Dmitry Fleytman wrote:
Reviewed-by: Dmitry Fleytman <address@hidden>

This patch also fixes compilation with NET_RX_PKT_DEBUG defined.

On 15 Feb 2017, at 10:31 AM, Fam Zheng <address@hidden> wrote:

This has been pointless since commit 605d52e62, which was a
search-and-replace, overlooked the redundancy.

Signed-off-by: Fam Zheng <address@hidden>
hw/net/net_rx_pkt.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/hw/net/net_rx_pkt.c b/hw/net/net_rx_pkt.c
index 1019b50..7f928d7 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)
-    NetRxPkt *pkt = (NetRxPkt *)pkt;

     printf("RX PKT: tot_len: %d, vlan_stripped: %d, vlan_tag: %d\n",

Applied, thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]