git: 631723ed9788 - stable/13 - if_mos: Remove set but unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 30 Apr 2023 06:57:58 UTC
The branch stable/13 has been updated by hselasky:
URL: https://cgit.FreeBSD.org/src/commit/?id=631723ed978867814e20715914f46e76040bd0e6
commit 631723ed978867814e20715914f46e76040bd0e6
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-10 17:35:48 +0000
Commit: Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2023-04-30 06:56:17 +0000
if_mos: Remove set but unused variable.
Reviewed by: hselasky
Reported by: GCC
Differential Revision: https://reviews.freebsd.org/D39356
(cherry picked from commit 5328efb3d0a54df20779d82319c3eebd49aa2993)
---
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 d8f9cefedee9..3448e13bc254 100644
--- a/sys/dev/usb/net/if_mos.c
+++ b/sys/dev/usb/net/if_mos.c
@@ -426,11 +426,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);