aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sis/if_sis.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sis/if_sis.c')
-rw-r--r--sys/dev/sis/if_sis.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/sis/if_sis.c b/sys/dev/sis/if_sis.c
index 09e2242065b0..4a95af63d8a6 100644
--- a/sys/dev/sis/if_sis.c
+++ b/sys/dev/sis/if_sis.c
@@ -2361,7 +2361,6 @@ sis_add_sysctls(struct sis_softc *sc)
{
struct sysctl_ctx_list *ctx;
struct sysctl_oid_list *children;
- char tn[32];
int unit;
ctx = device_get_sysctl_ctx(sc->sis_dev);
@@ -2376,10 +2375,8 @@ sis_add_sysctls(struct sis_softc *sc)
* because it will consume extra CPU cycles for short frames.
*/
sc->sis_manual_pad = 0;
- snprintf(tn, sizeof(tn), "dev.sis.%d.manual_pad", unit);
- TUNABLE_INT_FETCH(tn, &sc->sis_manual_pad);
SYSCTL_ADD_INT(ctx, children, OID_AUTO, "manual_pad",
- CTLFLAG_RW, &sc->sis_manual_pad, 0, "Manually pad short frames");
+ CTLFLAG_RWTUN, &sc->sis_manual_pad, 0, "Manually pad short frames");
}
static device_method_t sis_methods[] = {