From nobody Tue Mar 01 14:39:57 2022 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 AEC7719DABD6; Tue, 1 Mar 2022 14:39:58 +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 4K7Kf52mWWz3Fhc; Tue, 1 Mar 2022 14:39:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646145597; 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=AmcBn0xscvaq5ZDULCTGY9ileTzFB6WuiEcgfv+3gHg=; b=pFAycuibOfxcTOazm3xbZO1tf4cwvGa87EVjf6GSSdjUr3Uf0LUGnh/AV7/8rzX68uWwjM aI/hIkYD4bt6faKT3F1D0fmtQOBGyogudE4gpehQw69HyiRCEYUKQkTLfGiL5UCwuQYnRo XKiazzn4vLt4Hc6iAoLOwLqUYFUBTI9gfz9KCIV/l7spGGj8slwyzrye/Z9fOMo38RB3h/ WbX8+Y9tq4vZxg/iq8ZBSoFGAcsZDXr+U/PJUW8uMeBD0Fo6U7uN3ofwgZHTpROJNG0vj9 nMK1jbp5RPXUPzUtHpkvhar5KZQUeExI8ZWvWHjgVI2lNcka20a13RZ5u7U3aQ== 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 2EA7211631; Tue, 1 Mar 2022 14:39:57 +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 221EdvgQ038530; Tue, 1 Mar 2022 14:39:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 221EdvXE038529; Tue, 1 Mar 2022 14:39:57 GMT (envelope-from git) Date: Tue, 1 Mar 2022 14:39:57 GMT Message-Id: <202203011439.221EdvXE038529@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 9f70c04da481 - main - rip: Fix a -Wunused-but-set-variable 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9f70c04da481f0080a444d34d55088d579d3ec5e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646145597; 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=AmcBn0xscvaq5ZDULCTGY9ileTzFB6WuiEcgfv+3gHg=; b=qeQxoCeknMViUXBukUis/jUZYUd0d0mDxpmL+6uLBxIYwZ+hiac44Tm6LqXb41H6YNnKyF uPvHNfslgUuLLzxOY1c889aftkXplJ/+9p3nTtqhPG6KEqWaDCkD56blM6tN3nLR894TsG XC7DSxL4ewaHnpxlqCvNaaNx6PQ72zk6yId9d1kXrezSchAG5AxRT71BWJfOj8Bix2SWSD cXWsEKNS2EY36j57ZwISPoHZX7a1GTYpmm52Nw0xWI9yZYzKnxSp3pyaYbEDFwLk1+MK50 gerb9neey2OsBUonJW7/YwqiXEsn3qxGKnEpR0gtp6UA1hQpHi581TN7hSbNZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646145597; a=rsa-sha256; cv=none; b=NKM3nua6lv+xF9OqsR8/t+GGmILpqdu8EqaKBYPXAcEnGcJHaONZf8fWZv01PtGppQopC0 76dcMrKvx6vsNYaANGJvyh8RLKPoI3QM8JOa8BMzwBHnC4v3sgrS+lvmTATSmK8nMXeXiO fp0xZyFdhxMCcTO1g3fb4Z0nu4e4CjdzGQp7Fm6iXAjY8RDP5p+10/PK8WwSSlXZoSpZI1 d77yyprmXwwS6KzCHKKDCh3sy0CH0D5sx2vxhGv5iw8jN45vKD3M+iNeFkxSGB0/YY0XAy HH5jcRsatYCPPhq/E5Pdbi2MYhYO5HvwhGY4Kx7JUv43k/TIvZpLzO18ZHP/9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=9f70c04da481f0080a444d34d55088d579d3ec5e commit 9f70c04da481f0080a444d34d55088d579d3ec5e Author: Mark Johnston AuthorDate: 2022-03-01 14:01:24 +0000 Commit: Mark Johnston CommitDate: 2022-03-01 14:39:43 +0000 rip: Fix a -Wunused-but-set-variable warning Fixes: 81728a538d24 ("Split rtinit() into multiple functions.") Reviewed by: imp, melifaro MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D34395 --- sys/netinet/raw_ip.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index fb6718dfd28e..cd048284c5e8 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -780,9 +780,7 @@ void rip_ctlinput(int cmd, struct sockaddr *sa, void *vip) { struct in_ifaddr *ia; - struct ifnet *ifp; int err; - int flags; NET_EPOCH_ASSERT(); @@ -817,12 +815,6 @@ rip_ctlinput(int cmd, struct sockaddr *sa, void *vip) if (ia == NULL || (ia->ia_flags & IFA_ROUTE)) return; ifa_ref(&ia->ia_ifa); - flags = RTF_UP; - ifp = ia->ia_ifa.ifa_ifp; - - if ((ifp->if_flags & IFF_LOOPBACK) - || (ifp->if_flags & IFF_POINTOPOINT)) - flags |= RTF_HOST; err = ifa_del_loopback_route((struct ifaddr *)ia, sa);