Skip to content

Commit

Permalink
ukswitch: fix non-debug build
Browse files Browse the repository at this point in the history
PR:		278847
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 2e0c027)
(cherry picked from commit 7309d72)
  • Loading branch information
emaste committed May 14, 2024
1 parent 6cfe388 commit aebc1da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/dev/etherswitch/ukswitch/ukswitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit aebc1da

Please sign in to comment.