From nobody Tue Jan 24 22:10:08 2023 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 4P1h3h4FcKz3bdbG; Tue, 24 Jan 2023 22:10:08 +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 4P1h3h3bBZz4J7J; Tue, 24 Jan 2023 22:10:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598208; 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=N9cZKH9coEuBSVZ58YKmqyOmKRgPXz7IjaJoirP1vv0=; b=CtsE8GAULSAv/06PHaLbgCV9zlg4imdIHMpQhp0AKJbk+CfibQcIJz+Cx+Q3GNR7G8uCbZ 8mPpi3oXvSeWsmY9ctLOqsdsd5RJUZGULoJDfx7u9MBuu1mT5ISPHeEYtwoZdVHLxUlLoZ ucLtYXZqYIuAG+YEmQefLtxlWh2zIC777zQskCX2bemU5wzprcajvqQfpx2+Skij32SHsS uOktplfz1wwDE2Zb/HKUlWoXQ7ZhylpAlvmdurwKDRq2VOue7Cd0NyebxKiBCRtdn5ogzl /nuwkCbaeWuyraWTlLHIJoK85B+Xo1TCQiOs3/5+mtSLJo0zZhqBJlcmY0nkWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598208; 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=N9cZKH9coEuBSVZ58YKmqyOmKRgPXz7IjaJoirP1vv0=; b=tvgb4Xx/egfbn1BV4hJb6W/LxoU74hoZJ5eG0eimF1IeJGycKhbblrkdlT3+/Tuo2CjK+M tqu1QV1R/+h//s+wfh+5xtkMXW1Fzyli9nUpxXA8rxvAwSkwL+QVc4ESdonMeASiFF3C4x amXY5P1fItcriWN9l/oEheG2CtPeg28nMuCn5rXtfSri/dTxMF3mEvO9Kp6SgVv092mYkB w2QJHyy8cIz46Plv2J3p4YxTx9nHA0QQ1pWGPV27auBQ/2lGQZIrooLXU3vKCXz5a0ZKZl H9tD7tEwr5oKQcYYSTbqtcH0z7f7kqcpt7f4hKB3P2LNCQQGhPERlFeOAATNgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674598208; a=rsa-sha256; cv=none; b=u/am8TbwUJ7D1mRxacvrlWvJ58+7q5QBybZVSuSAdYJCZoxTgEsD04Z2xVGh+88K1bgjpU I10mrPiu6ukypSuc0MrxSC8aO21h0apF2xSH/wAHMJDfYd+w+dtdC62XOAIaAujSUDvXg+ Y/2ZD2wb6dowBmsMBSBIe/Ej0R+8aGn+IjmF0ozv/hjs0ObZ3GzLJ0ktFkjHjq4sy1S7AV 2obhoMXesDlRrrVRXQ19aUN9vEH+aELqypbhKD+OB7coRP1BpySUa4lYaXwsPp6AmEH8LC 5yVCldygGaCbkFBnuuAA4pkSXn7/VKlFbsvc1ZoDC7DLetwV8pY3xlYKr2pytQ== 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 4P1h3h2X6mzQFC; Tue, 24 Jan 2023 22:10:08 +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 30OMA8Fw074572; Tue, 24 Jan 2023 22:10:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30OMA8KT074569; Tue, 24 Jan 2023 22:10:08 GMT (envelope-from git) Date: Tue, 24 Jan 2023 22:10:08 GMT Message-Id: <202301242210.30OMA8KT074569@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 0a7f1efb4488 - stable/13 - stand: netif kill set but unused variables 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 0a7f1efb4488c88dec6515085f8904c22ef84780 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0a7f1efb4488c88dec6515085f8904c22ef84780 commit 0a7f1efb4488c88dec6515085f8904c22ef84780 Author: Warner Losh AuthorDate: 2021-12-16 02:44:28 +0000 Commit: Warner Losh CommitDate: 2023-01-24 21:49:19 +0000 stand: netif kill set but unused variables Sponsored by: Netflix (cherry picked from commit 58e354ec8b1ae0ec80fba02636e64930db4fd9c2) --- 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)