summaryrefslogtreecommitdiff
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-14 16:56:33 +0000
commit1346b9ca7167789061edec6547f1f8c5b839c71a (patch)
tree73b6cff040fef354188386a209ca50f91ac47148 /sys/dev
parentdfac340633bcc64ce005009483ec353c6201b210 (diff)
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 a5d2de94a13e..ab22ac5f97e9 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);