net: Remove useless local var pkt
PATCH 1/1 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 <[email protected]>
--- hw/net/net_rx_pkt.c | 1 - 1 file changed, 1 deletion(-)
hw/net/net_rx_pkt.c +0 -1
@@ -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",
Signature · 1 line
2.9.3
Reviewed-by Dmitry Fleytman <[email protected]>
This patch also fixes compilation with NET_RX_PKT_DEBUG defined.
Quoted 25 lines · Fam Zheng
This has been pointless since commit
605d52e62, which was a search-and-replace, overlooked the redundancy.Signed-off-by Fam Zheng <[email protected]>---
hw/net/net_rx_pkt.c| 1 -1 file changed, 1 deletion(-)hw/net/net_rx_pkt.c +0
-1@@ -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",Signature · 1 line
2.9.3
Jason Wang
AppliedQuoted 25 lines · Dmitry Fleytman
Reviewed-by Dmitry Fleytman <[email protected]>This patch also fixes compilation with
NET_RX_PKT_DEBUGdefined.Quoted 21 lines · Fam Zheng
This has been pointless since commit
605d52e62, which was a search-and-replace, overlooked the redundancy.Signed-off-by Fam Zheng <[email protected]>---
hw/net/net_rx_pkt.c| 1 -1 file changed, 1 deletion(-)hw/net/net_rx_pkt.c +0
-1@@ -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);
Quoted 4 lines
Quoted 4 lines
hw/net/net_rx_pkt.c +0
-0printf("RX PKT: tot_len: %d, vlan_stripped: %d, vlan_tag: %d\n",Signature · 1 line
2.9.3
Applied, thanks.