mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
ukswitch: fix non-debug build
PR: 278847 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
ad4f3bdf73
commit
2e0c027e69
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue