Module Name:    src
Committed By:   jruoho
Date:           Tue Aug 24 14:53:45 UTC 2010

Modified Files:
        src/sys/dev/acpi: sony_acpi.c

Log Message:
Remove phony spl(9). XXX: This driver needs to be cleaned up.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/acpi/sony_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/acpi/sony_acpi.c
diff -u src/sys/dev/acpi/sony_acpi.c:1.18 src/sys/dev/acpi/sony_acpi.c:1.19
--- src/sys/dev/acpi/sony_acpi.c:1.18	Thu Apr 15 07:02:24 2010
+++ src/sys/dev/acpi/sony_acpi.c	Tue Aug 24 14:53:45 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: sony_acpi.c,v 1.18 2010/04/15 07:02:24 jruoho Exp $	*/
+/*	$NetBSD: sony_acpi.c,v 1.19 2010/08/24 14:53:45 jruoho Exp $	*/
 
 /*-
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.18 2010/04/15 07:02:24 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.19 2010/08/24 14:53:45 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/sysctl.h>
@@ -327,7 +327,6 @@
 	struct sony_acpi_softc *sc = device_private(dv);
 	ACPI_STATUS rv;
 	ACPI_INTEGER arg;
-	int s;
 
 	if (notify == SONY_NOTIFY_FnKeyEvent) {
 		rv = sony_acpi_eval_set_integer(hdl, "SN07", 0x202, &arg);
@@ -337,7 +336,6 @@
 		notify = arg & 0xff;
 	}
 
-	s = spltty();
 	switch (notify) {
 	case SONY_NOTIFY_BrightnessDownPressed:
 		sony_acpi_brightness_down(dv);
@@ -373,11 +371,9 @@
 	case SONY_NOTIFY_ZoomReleased:
 		break;
 	default:
-		aprint_debug_dev(dv, "unknown notify event 0x%x\n",
-		    notify);
+		aprint_debug_dev(dv, "unknown notify event 0x%x\n", notify);
 		break;
 	}
-	splx(s);
 }
 
 static bool

Reply via email to