From nobody Thu Dec 19 04:11:46 2024 X-Original-To: dev-commits-src-all@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 4YDHDg18c6z5hVTr; Thu, 19 Dec 2024 04:11:47 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YDHDf5P3Hz4fKT; Thu, 19 Dec 2024 04:11:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734581506; 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=0B12UZyrRk4OcBbonfF1UG7IoKLAkJZc+m7C4/pYruM=; b=RgUfQuPLX2LH6Ay4kKHVbIT3IDv+EZta5xWt666rXH53iy/Y9ajVcQjUQ999Z7fpLVYEqY 3TVtvrX5e1n6fW62MpyH3aNr/XyiPh5b338sN5z/2Iz9woc8Xi7Lfh1ZiFV0nxXUmuMPb0 +pibotrFDxGfDZrx3aajChz4CUb7p1+Lm1LtK6mtXsIkBJ+qVFgrf4b2yNmKc+3svt2IdJ fuAbLi5942UHftWyfogVfho2Ncr9C5EfqaUoy7gkwjYtdgYN4pyzyaWvbEeCQ+V1NNhTc5 XwErrPwOlBUJ5Z/clMZs436fL00fvRGNId13IW7/lLta40beo3h5fzURdGqB3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734581506; 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=0B12UZyrRk4OcBbonfF1UG7IoKLAkJZc+m7C4/pYruM=; b=A4sZpsskzRsUjLGSOdUfKFhL4L+yDxk9XoP4JzjTHx1AVzqDbdTdGN83NRsO5ml/cqbECk a7CykRQ48xCxgORwdfzW3dR4RGxMCB9RwbGNuDny+f4VPEpm1t2qHcoDaCzGHylgcIJGs8 qJwI5b43iBdvFMHQKzVYH8EBLgddHO3t2G4SUtuIpnKl8WyZfGzUKJ5OycKM2NBnZ584Ym iKP2jphbXot2QAdA5kz8G4VnIInKFKjcPgYaM54IGViNCMFcnSeWBLy+AkBHkPTfQ8YD31 GDk8cggRW9/em8ednSCYvsNNPU1povI0g+fcx5r6/nHRKTJTwKJqSbB8DU70xQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734581506; a=rsa-sha256; cv=none; b=x+kC10nGTwc6UG/0zUR6pNOdrjTNC8aWbWdd97LvAtfbgKosKgNj8SiYb5pzbzWVY12qWe CgHompXQqrLIjTIy1m4o/1kx7BtbUOmDLeUuyzDiacHZ2pqZBy9ti+yVPB4tcX3Xz64htw MaGdw7cECU3jBJhVGzABgNf6bw6zgcQ6RTz03mjsVIJV9t3XywdT9dttkpjqrc+ABjrk8n r2SH/DSxGTl5t/XaO0ksdOXBpKRwqNbb96s01oXZntrVwnSS+RmhP2G+ypdQx5IrKa67S/ rzPvTpS6ExdCWKZ3tERxywbwvbNRujzUDXFJN5FiV1nA3NV3RYFifoGlH8fX0Q== 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 4YDHDf50KPzdZS; Thu, 19 Dec 2024 04:11:46 +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 4BJ4Bkf6040937; Thu, 19 Dec 2024 04:11:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BJ4Bkl1040934; Thu, 19 Dec 2024 04:11:46 GMT (envelope-from git) Date: Thu, 19 Dec 2024 04:11:46 GMT Message-Id: <202412190411.4BJ4Bkl1040934@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: c91dd7a054b3 - main - tcp: remove unused variable from tcp_usr_disconnect() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c91dd7a054b3f2bc0325749950816bed3e6397e8 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=c91dd7a054b3f2bc0325749950816bed3e6397e8 commit c91dd7a054b3f2bc0325749950816bed3e6397e8 Author: Gleb Smirnoff AuthorDate: 2024-12-19 04:11:34 +0000 Commit: Gleb Smirnoff CommitDate: 2024-12-19 04:11:34 +0000 tcp: remove unused variable from tcp_usr_disconnect() --- sys/netinet/tcp_usrreq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index b5725eb1ce86..35578b348c9f 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -685,7 +685,6 @@ tcp_usr_disconnect(struct socket *so) struct inpcb *inp; struct tcpcb *tp = NULL; struct epoch_tracker et; - int error = 0; NET_EPOCH_ENTER(et); inp = sotoinpcb(so); @@ -702,11 +701,11 @@ tcp_usr_disconnect(struct socket *so) goto out; tcp_disconnect(tp); out: - tcp_bblog_pru(tp, PRU_DISCONNECT, error); + tcp_bblog_pru(tp, PRU_DISCONNECT, 0); TCP_PROBE2(debug__user, tp, PRU_DISCONNECT); INP_WUNLOCK(inp); NET_EPOCH_EXIT(et); - return (error); + return (0); } #ifdef INET