From nobody Mon Dec 30 15:02:12 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YMK841swXz5k47Z; Mon, 30 Dec 2024 15:02:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YMK841H4Lz4gWH; Mon, 30 Dec 2024 15:02:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735570932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yDaF4OiPU/jBz1WixIDw4xNz0RUgT+73Hs3RtmzPJxk=; b=B+s9VyKMKsno47CC2FIKUURuD6AdAoe2wpCnDZ+U2m/zq0tboVaOgPGWUKta0GOeNREmXZ fmPh8j/ILdH1BLn/Sr//bQ7PbT0YfNt29QlNrEDuiyGgKQOCsh5T+kBwRjvJHRujvXEZg4 vt9/kGzd6hWve6Cw/0qqTlWjMPVdrRGcgNOmW9Z8ZvySRw7v+jo7MU7oSQeqBXL1NZYu56 sMLhsrbv884a9GJd7EMHNtcEPqmuIDcojnzyWdDqI35Z5sgNfssTId/OoouzqKADZ5nJMt ZNNB8MCz+EmV4Sr+Eq3Q5bEoQV1ARAKIsGSdSl+c2m9OSeqbpPWr7OaqLbiF3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735570932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yDaF4OiPU/jBz1WixIDw4xNz0RUgT+73Hs3RtmzPJxk=; b=GfDwAmISyuY27jlY4QJfJMlDvOzp67hXviqZbH1QY9/95pwhguiOvZ2FIqtq988hyv5ugm 3GWB2/R0elMdANMQZ90vWdQpVhka520Lu2p5n4R06k9xqRUBWt8tEzS9k2wTtmWJydJWbJ fB/sZlh23V4XE+NNgD14H5DJ1vLQpGhx/l+fyPZ6s5tF+TZWcUjUGUsWBAWGG3GufjcrKN HxyC3+Rhc4aMcbnQx4uKY1AXnk0ob9n88o3R7OYd7ZX1GWpDiC4nuHHAE7tufUcCq3pIMo d9xMJnsPldqv2S5mfRtgVY0jlHUsMXOr+kY3F3bn5pcHm/n/Inwb4PdG44kubw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735570932; a=rsa-sha256; cv=none; b=Te+1Hz/nU1Fd+YYrRK6oDPeD1H13tVjCki/QXje1nr/dsNnVH+fVVAuBME7goIUeV3h4OW ax1l2WlfY7cds07q7uLN/mCv3Rv/OQQ91KtEoNmBckrClWV/C48NO0wteOjFkn6A26bUai 0fBFpJfXwteOx8Zgnv5As7WsIdYPFcyncY9k0sy2jtkEdxkkgd3lZeu7vawSByvTc6Uue+ G1UiI/eXSsSMh74VS7BW8KBBTh2tvplYQKBoQZm0dm7aJkwHtGRr4DIG5Atci2fV1esbNa 5uNz+PrG6WfDe/Ojyg534dhbpXhwSqCOStwR+7dWcE+iyu8JyCX3sEOHQiCAvQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YMK840sjvzyVx; Mon, 30 Dec 2024 15:02:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BUF2Cqg084167; Mon, 30 Dec 2024 15:02:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BUF2CIw084164; Mon, 30 Dec 2024 15:02:12 GMT (envelope-from git) Date: Mon, 30 Dec 2024 15:02:12 GMT Message-Id: <202412301502.4BUF2CIw084164@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Tuexen Subject: git: 16e8e99f1d41 - main - TCP RACK: remove redundant check List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 16e8e99f1d412103d8f42e5ed740555c545bffc5 Auto-Submitted: auto-generated The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=16e8e99f1d412103d8f42e5ed740555c545bffc5 commit 16e8e99f1d412103d8f42e5ed740555c545bffc5 Author: Michael Tuexen AuthorDate: 2024-12-30 15:00:11 +0000 Commit: Michael Tuexen 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 { /*