aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/acpica/acpi_battery.c
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2006-06-10 08:04:38 +0000
committerNate Lawson <njl@FreeBSD.org>2006-06-10 08:04:38 +0000
commit197b4dcc64c09bcafd4b55442c356069b3a4104a (patch)
tree5b8fd397d5376479b6be3368b5a773066f0ee44d /sys/dev/acpica/acpi_battery.c
parente4c7a7b1697d199698b5d15858de8f09a1174e82 (diff)
downloadsrc-197b4dcc64c09bcafd4b55442c356069b3a4104a.tar.gz
src-197b4dcc64c09bcafd4b55442c356069b3a4104a.zip
Minor sysctl cleanup. The RW flag means read|write and so it is redundant
to add the RD flag. Also, the debug node does not need to be writable.
Notes
Notes: svn path=/head/; revision=159476
Diffstat (limited to 'sys/dev/acpica/acpi_battery.c')
-rw-r--r--sys/dev/acpica/acpi_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_battery.c b/sys/dev/acpica/acpi_battery.c
index 65ae95878504..e5c8d07e08aa 100644
--- a/sys/dev/acpica/acpi_battery.c
+++ b/sys/dev/acpica/acpi_battery.c
@@ -482,7 +482,7 @@ acpi_battery_init(void)
NULL, 0, acpi_battery_units_sysctl, "I", "number of batteries");
SYSCTL_ADD_INT(&acpi_battery_sysctl_ctx,
SYSCTL_CHILDREN(acpi_battery_sysctl_tree),
- OID_AUTO, "info_expire", CTLFLAG_RD | CTLFLAG_RW,
+ OID_AUTO, "info_expire", CTLFLAG_RW,
&acpi_battery_info_expire, 0,
"time in seconds until info is refreshed");