Skip to content

Commit 5733622

Browse files
committed
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 <[email protected]>
1 parent 76dcd73 commit 5733622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
291291
"Found critical threshold [%lu]\n",
292292
tz->trips.critical.temperature);
293293
}
294-
if (tz->trips.critical.flags.valid == 1) {
294+
if (tz->trips.critical.flags.valid) {
295295
if (crt == -1) {
296296
tz->trips.critical.flags.valid = 0;
297297
} else if (crt > 0) {

0 commit comments

Comments
 (0)