git: 16e8e99f1d41 - main - TCP RACK: remove redundant check
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Dec 2024 15:02:12 UTC
The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=16e8e99f1d412103d8f42e5ed740555c545bffc5 commit 16e8e99f1d412103d8f42e5ed740555c545bffc5 Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2024-12-30 15:00:11 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2024-12-30 15:00:11 +0000 TCP RACK: remove redundant check No functional change intended. Reviewed by: rrs CID: 1523811 MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D48216 --- sys/netinet/tcp_stacks/rack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_stacks/rack.c b/sys/netinet/tcp_stacks/rack.c index 9561c957bb00..da68060dd1d2 100644 --- a/sys/netinet/tcp_stacks/rack.c +++ b/sys/netinet/tcp_stacks/rack.c @@ -22978,7 +22978,7 @@ rack_process_option(struct tcpcb *tp, struct tcp_rack *rack, int sopt_name, switch (sopt_name) { case TCP_RACK_SET_RXT_OPTIONS: - if ((optval >= 0) && (optval <= 2)) { + if (optval <= 2) { rack_init_retransmit_value(rack, optval); } else { /*