From nobody Mon Apr 10 17:44:00 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 4PwGYZ2MBdz44X70; Mon, 10 Apr 2023 17:44:02 +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 4PwGYY1Lp7z3Hwh; Mon, 10 Apr 2023 17:44:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681148641; 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=/gRzcZBbxIQOScrI7CNtrRv65NhcyscsidQW+Klje0Q=; b=ACBOB7lP6NNhsH3is8652nmkcDmRlMVPdYeKbNLOOHMjJW/aPgIVAlVwn1qK4YKjr7rvcf Ea6XRTU+8CzGqZ5udMoBjkIlXVMwREIZ+qb2Ct/iob+1oB9i9f3n76IJyXFxp4rNYclMyK YuEFQFB9E5e+Txsn6HlyKqIKxOZ1kE34CAXpc54kVt6aV83kRbMgmuD58FIYqrWBZhVQGI RtbqI6Mhez4wd63InK+CYkJO5SIWaSpcz89kx0z+8XVauzDqnYcjwOFqbivqO79dG0G/YX B8azMgfFDGekW6PH2NxdoFebUMv49R6wAw9Y8OyHsAfos5aRy6SVtd7WM01dgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681148641; 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=/gRzcZBbxIQOScrI7CNtrRv65NhcyscsidQW+Klje0Q=; b=LsisE8tjyr0FQfK8lhXRxZwwDsNSPul5awWPymA56fmR3RhriT0ay+c8VNDmvD94EP9kr0 ULG4RT6Dus8LBjQKJP0Up3fuqoXmzsLOLjk4CRz9sTd3bSFcEzvzmg6sYjKb3F8a0ky9do aR7fIfdmwgMOfxKyhrCiUZuWqkk/I1ndleAqYJIkHaIUwdm8a+jipBR8ZSqNtEeRBjm5tN LIPcPHzvDhNUh5hJ4IBnThKEtqOnJwLebdb2mA77KM3ZTHnVHqfhp76yyfi1o9bkn0aMGI 6OPvnkc3AG0D3fNj5mTpDJ0yhVhy3UX5OdCbpyYqcWvadgRdc5BbVcsph+zOPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681148641; a=rsa-sha256; cv=none; b=AOcnPVEEhW701xFjnZJJMGfNp1I9qD023Nz0Uyvur9tttvMvjk2w/cfIMYQjIDE72EZPsS +iAh6pcX3d4rv/BaStOcXlHhxVrVhDZU2Ehsl3EoAVw5HvlTMFooK2x+SWU02HSlHxzSf4 AiBw2HDw0ZWyGpliyv/khrfRt2MXXDWnMqG5LVJthcNDbA2dd+qSdqRZ0kqvyMAG+1aADQ fitIW+1NM7/amYX7j0B9KFJGzs7Lcbr9zFJSLLBI0lcf+b7siRtBdpGqBuafoWR47UZcVy Wty2yTSJXWirqpo1h4qw1zj6zqkhtaZ4pcM0hS4yX9lmAs9Znttez/w6bdU8BQ== 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 4PwGYY0Qwzz10M3; Mon, 10 Apr 2023 17:44:01 +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 33AHi0dE073867; Mon, 10 Apr 2023 17:44:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33AHi0H0073866; Mon, 10 Apr 2023 17:44:00 GMT (envelope-from git) Date: Mon, 10 Apr 2023 17:44:00 GMT Message-Id: <202304101744.33AHi0H0073866@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: 5328efb3d0a5 - main - if_mos: Remove set but 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: 5328efb3d0a54df20779d82319c3eebd49aa2993 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5328efb3d0a54df20779d82319c3eebd49aa2993 commit 5328efb3d0a54df20779d82319c3eebd49aa2993 Author: John Baldwin AuthorDate: 2023-04-10 17:35:48 +0000 Commit: John Baldwin CommitDate: 2023-04-10 17:35:48 +0000 if_mos: Remove set but unused variable. Reviewed by: hselasky Reported by: GCC Differential Revision: https://reviews.freebsd.org/D39356 --- sys/dev/usb/net/if_mos.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/usb/net/if_mos.c b/sys/dev/usb/net/if_mos.c index d6d5becb6b46..11eefbc2adf9 100644 --- a/sys/dev/usb/net/if_mos.c +++ b/sys/dev/usb/net/if_mos.c @@ -424,11 +424,8 @@ static int mos_miibus_readreg(device_t dev, int phy, int reg) { struct mos_softc *sc = device_get_softc(dev); - uWord val; int i, res, locked; - USETW(val, 0); - locked = mtx_owned(&sc->sc_mtx); if (!locked) MOS_LOCK(sc);