aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2024-05-10 12:52:06 +0000
committerEd Maste <emaste@FreeBSD.org>2024-05-10 12:53:15 +0000
commit2e0c027e69de66afc1157c76bd42ecd3737d54e1 (patch)
tree7c6e171d14118e02434d90193d4259ef17c1a81f /sys/dev
parentad4f3bdf733c1a670021f4db378338f5aaedbfd8 (diff)
downloadsrc-2e0c027e69de66afc1157c76bd42ecd3737d54e1.tar.gz
src-2e0c027e69de66afc1157c76bd42ecd3737d54e1.zip
ukswitch: fix non-debug build
PR: 278847 Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/etherswitch/ukswitch/ukswitch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/etherswitch/ukswitch/ukswitch.c b/sys/dev/etherswitch/ukswitch/ukswitch.c
index 6eff37bb118e..88726422bd01 100644
--- a/sys/dev/etherswitch/ukswitch/ukswitch.c
+++ b/sys/dev/etherswitch/ukswitch/ukswitch.c
@@ -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);