From nobody Tue Apr 05 04:33:02 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 2D7201A92FB7; Tue, 5 Apr 2022 04:33:03 +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 4KXZWf4TM3z4gj5; Tue, 5 Apr 2022 04:33:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133182; 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=9QnaFp5ipYJtQgPJatnZDF8FKYy0oaHNRDwkub2LYZc=; b=u6BfsVp/TQ8FzQMlxgpY/1ghRz4RmQBO88ADzHubgt+I7hBOcLulju/r/tF9p6NQVvWbYB aGADJQF7llW96Ii656+X99+0lAt7IauR2vtNVeC5wtUMa2+tz9phiSC4vwbK2nzbIieX2t FmAfQf7B+p0jmwkiF4FC/1v+S811DrMIqFCIp6lgzbBDzaHtFPr/aZYZvdyUi16LWPWPGG C2vCElLEkjY0ujj+HS3tZ14B/wkDhxqBX1DAk3oHQSQLnN/+a5hjpoFA8RpW+ennIzahP2 h4wVz06XKTO7xUeCGUWV7qKfNcSaeOMwnb+0Ff+er90oqGX6mBqUzCj7Fc3U4Q== 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 56A4C1FEE3; Tue, 5 Apr 2022 04:33:02 +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 2354X2Ee009817; Tue, 5 Apr 2022 04:33:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354X2Ms009816; Tue, 5 Apr 2022 04:33:02 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:33:02 GMT Message-Id: <202204050433.2354X2Ms009816@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: c7761ca93e9f - main - pim6_input: eliminate write only variable rc 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c7761ca93e9f6be51db2a8632d6697253e93f6c3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133182; 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=9QnaFp5ipYJtQgPJatnZDF8FKYy0oaHNRDwkub2LYZc=; b=XHqbmI1II0NfNrtSKAAkgQnU/aTpc8jR2Kvgom2COMsMH2iG7QDwFiIlGRYcLjiCK9F2b6 HMRTx+dI+4n+XyptgwNfjqe+EC0OX5WLu4RArucD86aZvtGe+v/Vgb49wIgC7lB/6oRTAL nPA81w8JOpac7W2rHxumJm/ZmBFLRjHpf0JcSe+cBt2eQwVqp1glyuREW04RyyiNHXOYV1 doOL864VNSdimiGlGy1MmlWL5I8jqvQgBHMhzbZdfWqiOivvV826jHgN/n8c5Wz6uGp6+4 W1FGrdNgpPN44ReWV6s42iPyQPWnwrpLw4xwq4CUV8iCO/QgoE1ZmwNpKl5svA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133182; a=rsa-sha256; cv=none; b=AOiOeCvazKq3603GRZUz98xYRWsk7EgsCmXopxmllRzzkmrm+SrPXaDpB+53CxYfxnEdN+ MvYA5TDTv0NFcZlEH53E83pdZmK/Ei9pHMA/VSp98BAtlMiFWkVJx0he/kCf5LzMd9/lUt KCppX+Vm4SOS0zUX07wWeEGIjpYxh+p8TOlZw8TEkDQ2EfkhLYuUCnJKn3LpPT9DHY/OTx k91AVgDsCMt7JlZq6aP00rJ/oRdcn81WcsIIAxfJNRPFA844MunMBacZv/Z/gidyD6zqRO Ob35CDViI4MXszNhrA7Fltx8HrBWgSL78lHz2Rajq3KAW1K1LA4grX3dJodOSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=c7761ca93e9f6be51db2a8632d6697253e93f6c3 commit c7761ca93e9f6be51db2a8632d6697253e93f6c3 Author: Warner Losh AuthorDate: 2022-04-05 02:39:25 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:30:52 +0000 pim6_input: eliminate write only variable rc Sponsored by: Netflix --- sys/netinet6/ip6_mroute.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c index 05324dfb94bf..bbc021277fae 100644 --- a/sys/netinet6/ip6_mroute.c +++ b/sys/netinet6/ip6_mroute.c @@ -1793,7 +1793,6 @@ pim6_input(struct mbuf *m, int off, int proto, void *arg __unused) struct mbuf *mcp; struct ip6_hdr *eip6; u_int32_t *reghdr; - int rc; #ifdef MRT6DEBUG char ip6bufs[INET6_ADDRSTRLEN], ip6bufd[INET6_ADDRSTRLEN]; #endif @@ -1871,7 +1870,7 @@ pim6_input(struct mbuf *m, int off, int proto, void *arg __unused) ip6_sprintf(ip6bufs, &eip6->ip6_src), ip6_sprintf(ip6bufd, &eip6->ip6_dst), reg_mif_num); - rc = if_simloop(mif6table[reg_mif_num].m6_ifp, m, + if_simloop(mif6table[reg_mif_num].m6_ifp, m, dst.sin6_family, 0); /* prepare the register head to send to the mrouting daemon */