Module Name: src
Committed By: pgoyette
Date: Mon Jun 6 17:53:01 UTC 2011
Modified Files:
src/sys/dev/acpi: thinkpad_acpi.c
Log Message:
Don't update the value_{min,max} - these fields are not {low,high}-water
marks, and setting them without also updating the ENVSYS_FVALID_{MIN,MAX}
flags is quite pointless.
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/acpi/thinkpad_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/thinkpad_acpi.c
diff -u src/sys/dev/acpi/thinkpad_acpi.c:1.37 src/sys/dev/acpi/thinkpad_acpi.c:1.38
--- src/sys/dev/acpi/thinkpad_acpi.c:1.37 Thu Apr 14 07:06:52 2011
+++ src/sys/dev/acpi/thinkpad_acpi.c Mon Jun 6 17:53:01 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: thinkpad_acpi.c,v 1.37 2011/04/14 07:06:52 jruoho Exp $ */
+/* $NetBSD: thinkpad_acpi.c,v 1.38 2011/06/06 17:53:01 pgoyette Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: thinkpad_acpi.c,v 1.37 2011/04/14 07:06:52 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: thinkpad_acpi.c,v 1.38 2011/06/06 17:53:01 pgoyette Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -577,10 +577,6 @@
}
edata->value_cur = rpm;
- if (rpm < edata->value_min || edata->value_min == -1)
- edata->value_min = rpm;
- if (rpm > edata->value_max || edata->value_max == -1)
- edata->value_max = rpm;
edata->state = ENVSYS_SVALID;
}