The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=5328efb3d0a54df20779d82319c3eebd49aa2993

commit 5328efb3d0a54df20779d82319c3eebd49aa2993
Author:     John Baldwin <[email protected]>
AuthorDate: 2023-04-10 17:35:48 +0000
Commit:     John Baldwin <[email protected]>
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);

Reply via email to