From nobody Fri Dec 03 04:13:06 2021 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 E94BD18C6598; Fri, 3 Dec 2021 04:13:07 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J4zvR2vWzz3DDH; Fri, 3 Dec 2021 04:13:07 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 0E9EA1E64; Fri, 3 Dec 2021 04:13:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B34D6Y5029794; Fri, 3 Dec 2021 04:13:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B34D6DC029793; Fri, 3 Dec 2021 04:13:06 GMT (envelope-from git) Date: Fri, 3 Dec 2021 04:13:06 GMT Message-Id: <202112030413.1B34D6DC029793@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: 651a545143d2 - main - udp_detach(): fix set but not used warning 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 651a545143d2839f84a016f4e755a0b082ecfd50 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638504787; 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=Weznx4hIiv3pEPq6UXWED9Jfp9KE4nNcPjJmPQut2dc=; b=FVh+hYI+qwHNogO/iU3bfu+bccEda57tvJoB0aDbxv/LiNuizMu0T72/1cxdYxRfCrH9O+ mR0PYX1k18gwO5GllrFhifotPXA87+nyK9Ebfo1uD4OueUMR1oho2kEgAS3ElYrIVgqh+E 3I1MXDFcMHbu2sihz2ldoCYf3Ip43EJWH8RNvsc/Xe/I73P19maTee5s0d3GFTG7V2oS5k M6D1zeN3eMMdU4cPcnjtM5vIRMOGIZthwKQYGAzCcitzjg92PAA2fJMfJPXF0Gl0ArKpxd xc5W8/d6kbugRL9kUQwf8CgQquamOssEgIVyeayxcUNmWa+LksvaRklGb/IFuA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638504787; a=rsa-sha256; cv=none; b=MlWUjohsN9U79AerlonR8Q4WGiRzeEA91Xp3N/tnLUsNSbiPaYL3XUeHR9ArOhVV73O4o2 TxmnWtTAgvfI9Z1mXIjA97TLxHtMXjcoK8BWUDWaKwhqmKMi0War8lcs/d3VfQBrpQC+Tf W0lK6K2Zsk3LimIid1Mn2UYsga3Q0A5EQoJXbvSN1uzBVKsJRYvONQ4JDh6kyGT5t2oD+Y 90VMerZRttdh+ZynwlQ5R9bzmqaVHQ9LJGEsIMIQl6JmZV//z5drEHGyeB3X1cg+a63Uk3 5EjqlPIXvsEPVGqCHYor8sgFemi/pb+VkE55fAt7mXD+IzUSnRJUUHnOcPdj6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=651a545143d2839f84a016f4e755a0b082ecfd50 commit 651a545143d2839f84a016f4e755a0b082ecfd50 Author: Gleb Smirnoff AuthorDate: 2021-12-03 04:12:40 +0000 Commit: Gleb Smirnoff CommitDate: 2021-12-03 04:12:40 +0000 udp_detach(): fix set but not used warning --- sys/netinet/udp_usrreq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index a6be949286b8..237287fef1e6 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1695,10 +1695,8 @@ static void udp_detach(struct socket *so) { struct inpcb *inp; - struct inpcbinfo *pcbinfo; struct udpcb *up; - pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol); inp = sotoinpcb(so); KASSERT(inp != NULL, ("udp_detach: inp == NULL")); KASSERT(inp->inp_faddr.s_addr == INADDR_ANY,