From cde8d91b30fdf09b8ae2c1e9178660c64af6975b Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 13 Dec 2005 16:54:21 +0000 Subject: [PATCH] always set the value, don't shortcut when val == oval. From Sami Kantoluoto --- sys/arch/i386/acpi/sony_acpi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/i386/acpi/sony_acpi.c b/sys/arch/i386/acpi/sony_acpi.c index 2ac0f28bfb98..08cda6cfaf2f 100644 --- a/sys/arch/i386/acpi/sony_acpi.c +++ b/sys/arch/i386/acpi/sony_acpi.c @@ -1,4 +1,4 @@ -/* $NetBSD: sony_acpi.c,v 1.1 2005/12/11 02:40:25 christos Exp $ */ +/* $NetBSD: sony_acpi.c,v 1.2 2005/12/13 16:54:21 christos Exp $ */ /*- * Copyright (c) 2005 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.1 2005/12/11 02:40:25 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.2 2005/12/13 16:54:21 christos Exp $"); #include #include @@ -109,7 +109,7 @@ sony_sysctl_helper(SYSCTLFN_ARGS) node.sysctl_data = &val; error = sysctl_lookup(SYSCTLFN_CALL(&node)); - if (error || newp == NULL || val == old_val) + if (error || newp == NULL) return error; (void)snprintf(buf, sizeof(buf), "S%s", rnode->sysctl_name);