| Message ID | 20260404203335.30650-1-gert@greenie.muc.de |
|---|---|
| State | New |
| Headers | show |
| Series | [Openvpn-devel,v1] mtcp: Remove noop statement in multi_tcp_process_outgoing_link_ready | expand |
Another good catch :-) - and indeed, stare-at-code confirms your and
cppcheck's analysis. Dead code. From the dark times. As for the last
patch, "master only" unless we want release/2.7 to be cppcheck-clean.
Your patch has been applied to the master branch.
commit d44ed886c279de51a936cc0652c9b72c943a6558
Author: Frank Lichtenheld
Date: Sat Apr 4 22:33:30 2026 +0200
mtcp: Remove noop statement in multi_tcp_process_outgoing_link_ready
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1609
Message-Id: <20260404203335.30650-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36478.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
diff --git a/src/openvpn/mtcp.c b/src/openvpn/mtcp.c index 2eab7b7..7651b4d 100644 --- a/src/openvpn/mtcp.c +++ b/src/openvpn/mtcp.c @@ -155,10 +155,6 @@ ASSERT(mi == item.instance); mi->context.c2.to_link = item.buffer->buf; ret = multi_process_outgoing_link_dowork(m, mi, mpp_flags); - if (!ret) - { - mi = NULL; - } mbuf_free_buf(item.buffer); } return ret;