if_mos: Remove set but unused variable.

Reviewed by:	hselasky
Reported by:	GCC
Differential Revision:	https://reviews.freebsd.org/D39356
This commit is contained in:
John Baldwin 2023-04-10 10:35:48 -07:00
parent 4b6228906f
commit 5328efb3d0

View File

@ -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);