Skip to content

Commit

Permalink
TCP RACK: remove redundant check
Browse files Browse the repository at this point in the history
No functional change intended.

Reviewed by:		rrs
CID:			1523811
MFC after:		1 week
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D48216
  • Loading branch information
tuexen committed Dec 30, 2024
1 parent 895347f commit 16e8e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/netinet/tcp_stacks/rack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/*
Expand Down

0 comments on commit 16e8e99

Please sign in to comment.