aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-12-14 14:31:10 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-12-14 14:31:10 +0000
commit17ad5b249dd79de8c4b4d7939f8165a07c114ac7 (patch)
tree276b70e6183ad713bb072c86998e3d9db7e3068a /sys
parent4472999abe91f7378ce47c15d5db0ba633eb609c (diff)
downloadsrc-17ad5b249dd79de8c4b4d7939f8165a07c114ac7.tar.gz
src-17ad5b249dd79de8c4b4d7939f8165a07c114ac7.zip
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sis/if_sis.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/sis/if_sis.c b/sys/dev/sis/if_sis.c
index b4cc9e38a653..ecc42e991df4 100644
--- a/sys/dev/sis/if_sis.c
+++ b/sys/dev/sis/if_sis.c
@@ -2372,12 +2372,10 @@ sis_add_sysctls(struct sis_softc *sc)
{
struct sysctl_ctx_list *ctx;
struct sysctl_oid_list *children;
- int unit;
ctx = device_get_sysctl_ctx(sc->sis_dev);
children = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->sis_dev));
- unit = device_get_unit(sc->sis_dev);
/*
* Unlike most other controllers, NS DP83815/DP83816 controllers
* seem to pad with 0xFF when it encounter short frames. According