aboutgitcodebugslistschat
path: root/tcp_buf.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-09-12 16:59:39 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-09-12 09:13:46 +0200
commit1f414ed8f0b3101363c1373e338802186eb29b7c (patch)
tree565452aa463a215ad2378376c7849c453dad2db9 /tcp_buf.c
parent6b38f0723949f8b4b2787ee55d4330249a1a4a3e (diff)
downloadpasst-1f414ed8f0b3101363c1373e338802186eb29b7c.tar
passt-1f414ed8f0b3101363c1373e338802186eb29b7c.tar.gz
passt-1f414ed8f0b3101363c1373e338802186eb29b7c.tar.bz2
passt-1f414ed8f0b3101363c1373e338802186eb29b7c.tar.lz
passt-1f414ed8f0b3101363c1373e338802186eb29b7c.tar.xz
passt-1f414ed8f0b3101363c1373e338802186eb29b7c.tar.zst
passt-1f414ed8f0b3101363c1373e338802186eb29b7c.zip
tcp: Remove redundant initialisation of iov[TCP_IOV_ETH].iov_base
This initialisation for IPv4 flags buffers is redundant with the very next line which sets both iov_base and iov_len. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_buf.c')
-rw-r--r--tcp_buf.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tcp_buf.c b/tcp_buf.c
index c31e9f3..2e044b2 100644
--- a/tcp_buf.c
+++ b/tcp_buf.c
@@ -168,7 +168,6 @@ void tcp_sock4_iov_init(const struct ctx *c)
iov = tcp4_l2_flags_iov[i];
iov[TCP_IOV_TAP] = tap_hdr_iov(c, &tcp4_flags_tap_hdr[i]);
- iov[TCP_IOV_ETH].iov_base = &tcp4_eth_src;
iov[TCP_IOV_ETH] = IOV_OF_LVALUE(tcp4_eth_src);
iov[TCP_IOV_IP] = IOV_OF_LVALUE(tcp4_flags_ip[i]);
iov[TCP_IOV_PAYLOAD].iov_base = &tcp4_flags[i];