From nobody Tue Apr 12 21:59:32 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 758871AFC438; Tue, 12 Apr 2022 21:59:32 +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 4KdKPw2k6jz4hwQ; Tue, 12 Apr 2022 21:59:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800772; 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=za8FeD8xFnylY+PMYctQX4WyaGOEVQkrgf0K3VWwLMg=; b=UFZOMR71zVqie6NtMAc1LDAnf9+7eV00YJ+gfQAp/Zoi2FC4Y1gTyNwvcyme8vkMGWOzRv 43jMYML38MY1xfy0FD3CtliY1iBQiaC6DcW8949n55JdaY20xebOScwEkx4uUL73izkK/f CqfD+irNE25qGhut7yZlGej7Ep70swbuKiXQEXxXZH5d2p/1QYEpC7dxvOcz2aeatQM0pc +IHunnVqMD/mtkyWEvol8j/LbELRGT/x3h3wuNQYxHPsdRG7V3PmivyR3vJJq4hhoEAzxn IDCRfe3ZyKUH0nhuDV56rJqYmU31jQ/qhBffF9QZxzoqUjf6MIxl1/fZwOmcjQ== 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 3E89A1F5CD; Tue, 12 Apr 2022 21:59:32 +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 23CLxWXO035651; Tue, 12 Apr 2022 21:59:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23CLxWaH035650; Tue, 12 Apr 2022 21:59:32 GMT (envelope-from git) Date: Tue, 12 Apr 2022 21:59:32 GMT Message-Id: <202204122159.23CLxWaH035650@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 3ef2d49e7d21 - main - arswitch: Remove unused variable. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3ef2d49e7d211c282e8d1d6767b64c3037fcdbaf Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800772; 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=za8FeD8xFnylY+PMYctQX4WyaGOEVQkrgf0K3VWwLMg=; b=Y6SNNvTO+XJbvUXTVfT+gDLj+PC+qDwQALDR+kILEw0xOBdLkOUVgMKtpbFkrJbE62T5XG yw051XTyH8ZNqPy+zreKp2Sfg0dcOTvl0LdRjUHmrsN0jqLLgqivGcWp2mIQKA+oGC+k0G YgRkudzrf4dFsVo92/hdKIEX1fIAYTRX8V1JhTDkmedismE58auUJCO3CtotKLAOYZtSGz uWQOdyN6didnRiXP2VgFZp1OulVRN0LYdXrlvy1xFsM2y2WM9SBg2eREk3DeFnpaiF89hy G4deqG6ZbJZG3ZFDztM/T2qHdpGEN9y++nL8u0a+eUdC7Lw7zHV6gzUTCMHbhg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649800772; a=rsa-sha256; cv=none; b=XrGXJlSPyfm2zeh9OKUQ9rrL9huTpkYtOWtHbdSSFS2PwwzGHmiw4F95E2HfhK12hTql2h BxUtEz5JWyFY8/Idr33Lsr82td/k122S1zSWejLwzViLitoN2mdJ8jv7IJ7/e/AM6M5H8T XcjYQcVSG/qfOfmBaP/0VTd7HjE43XOLsg1Ud2XyjxC1P/7CQBjcE/zZcv4OEAr2oeZBzh wPZKuwzPvSL7j1ZDfqTbKi+Ha5JuK/M45oleBsyFsWpixb/zrfQkexaH82TSam83Z0/KBU nwaJx2VzzPeReb2wuxYyrHo4obGWUDW2DQnYjQ9BpO1xvEbnBYf/gjcBQ77xkg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3ef2d49e7d211c282e8d1d6767b64c3037fcdbaf commit 3ef2d49e7d211c282e8d1d6767b64c3037fcdbaf Author: John Baldwin AuthorDate: 2022-04-12 21:58:59 +0000 Commit: John Baldwin CommitDate: 2022-04-12 21:58:59 +0000 arswitch: Remove unused variable. --- sys/dev/etherswitch/arswitch/arswitch_reg.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/etherswitch/arswitch/arswitch_reg.c b/sys/dev/etherswitch/arswitch/arswitch_reg.c index c9f16f21fff1..cc29fa08522f 100644 --- a/sys/dev/etherswitch/arswitch/arswitch_reg.c +++ b/sys/dev/etherswitch/arswitch/arswitch_reg.c @@ -184,11 +184,8 @@ arswitch_readreg(device_t dev, int addr) int arswitch_writereg(device_t dev, int addr, int value) { - struct arswitch_softc *sc; uint16_t phy, reg; - sc = device_get_softc(dev); - arswitch_split_setpage(dev, addr, &phy, ®); return (arswitch_reg_write32(dev, 0x10 | phy, reg, value)); }