From nobody Thu Dec 16 03:04:22 2021 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 596A818D910A; Thu, 16 Dec 2021 03:04:23 +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 4JDxm673R2z4XSq; Thu, 16 Dec 2021 03:04:22 +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 D10DC28438; Thu, 16 Dec 2021 03:04:22 +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 1BG34M04055852; Thu, 16 Dec 2021 03:04:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BG34MsV055851; Thu, 16 Dec 2021 03:04:22 GMT (envelope-from git) Date: Thu, 16 Dec 2021 03:04:22 GMT Message-Id: <202112160304.1BG34MsV055851@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: 58e354ec8b1a - main - stand: netif kill set but unused variables 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 58e354ec8b1ae0ec80fba02636e64930db4fd9c2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639623863; 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=TVYpG1t7Jl4EPYGsBE+SZFfDz3iE7TDShclgeO9spjw=; b=OfcNZfSGzqjoHK9bkyvbD/OVe4zh1JUJDixHjGAtBYk9awHhIT4WOFrISK3qKsXX+Ldy/n HJfRt8IDREIIcA5N/pXaVIUGVCJHUzDulo/UhSgusgFuYOLV+UsNFQRRj36LuiQH8bCnpQ dAA1HDh6fQ5Awlfqc7+1yE41SK4MErYFKzpUH/Alg6Ln3yqNNDvDouKoCG2WJs3BoLhDdN T/kjZOCLzIIOCPPy3+g3F31qRnH321g7omn2z1PKFGNT2hpdJVk5PEA7U3x8iPI8BOMtMo K8BfjX8DZNKNfYGDihPeZlvFDpxd/vDiRwzZ1tjve44bWRyeO6VXO5qrmogvFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639623863; a=rsa-sha256; cv=none; b=iARHIqzemo0XCF0d8lojKV6ogjSOW7xDcLS4nCrU5BcJgyyiWDZmT7e+wiWN7UctRBBCKb ZKweROamXI3JM9XpNa8xhmT1i5WWIjmkLsDiWBEgMj5R83DK5fl0rL0vtnNfufYhA7ETCx HGLygZyIr2zBmun3S2cI8IyIreKdNaEmbyzbBfB0NPI7EtgPqpSmjXOSV+IPD9VP0leJUl bdIUfpy3zZgB8hh9ZYai3Oy1GhyJ32aewsdQBChC5ffR34RF60vwQrppk6JSxSWZFKiCzP 44h0sL7ueuK92jNpdjO/qe8yrXe5zr5aoq7ExZ56gV5oURMQuuGKPvwEvZODeg== 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=58e354ec8b1ae0ec80fba02636e64930db4fd9c2 commit 58e354ec8b1ae0ec80fba02636e64930db4fd9c2 Author: Warner Losh AuthorDate: 2021-12-16 02:44:28 +0000 Commit: Warner Losh CommitDate: 2021-12-16 02:44:28 +0000 stand: netif kill set but unused variables Sponsored by: Netflix --- stand/libsa/netif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stand/libsa/netif.c b/stand/libsa/netif.c index f199da3b6e95..4e91e11a9413 100644 --- a/stand/libsa/netif.c +++ b/stand/libsa/netif.c @@ -102,7 +102,7 @@ netif_match(struct netif *nif, void *machdep_hint) struct netif * netif_select(void *machdep_hint) { - int d, u, unit_done, s; + int d, u, s; struct netif_driver *drv; struct netif cur_if; static struct netif best_if; @@ -118,7 +118,6 @@ netif_select(void *machdep_hint) for (u = 0; u < drv->netif_nifs; u++) { cur_if.nif_unit = u; - unit_done = 0; #ifdef NETIF_DEBUG if (netif_debug)