ukswitch: fix non-debug build

PR:		278847
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2024-05-10 08:52:06 -04:00
parent ad4f3bdf73
commit 2e0c027e69

View file

@ -514,7 +514,7 @@ ukswitch_writephy(device_t dev, int phy, int reg, int data)
static int
ukswitch_readreg(device_t dev, int addr)
{
struct ukswitch_softc *sc;
struct ukswitch_softc *sc __diagused;
sc = device_get_softc(dev);
UKSWITCH_LOCK_ASSERT(sc, MA_OWNED);
@ -526,7 +526,7 @@ ukswitch_readreg(device_t dev, int addr)
static int
ukswitch_writereg(device_t dev, int addr, int value)
{
struct ukswitch_softc *sc;
struct ukswitch_softc *sc __diagused;
sc = device_get_softc(dev);
UKSWITCH_LOCK_ASSERT(sc, MA_OWNED);