mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
ACPI: thermal: Adjust critical.flags.valid check
It is not necessary to compare critical.flags.valid to 1 in acpi_thermal_trips_update() and doing so is also inconsistent with other similar checks in that code, so simply check if the flag is not 0 instead. No expected functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
76dcd734ec
commit
57336224da
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
|
|||
"Found critical threshold [%lu]\n",
|
||||
tz->trips.critical.temperature);
|
||||
}
|
||||
if (tz->trips.critical.flags.valid == 1) {
|
||||
if (tz->trips.critical.flags.valid) {
|
||||
if (crt == -1) {
|
||||
tz->trips.critical.flags.valid = 0;
|
||||
} else if (crt > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue