Skip to content

Commit e5b5d25

Browse files
kilobyterafaeljw
authored andcommitted
ACPI: thermal: drop an always true check
Address of a field inside a struct can't possibly be null; gcc-12 warns about this. Signed-off-by: Adam Borowski <kilobyte@angband.pl> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent fa55b7d commit e5b5d25

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/acpi/thermal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,8 +1098,6 @@ static int acpi_thermal_resume(struct device *dev)
10981098
return -EINVAL;
10991099

11001100
for (i = 0; i < ACPI_THERMAL_MAX_ACTIVE; i++) {
1101-
if (!(&tz->trips.active[i]))
1102-
break;
11031101
if (!tz->trips.active[i].flags.valid)
11041102
break;
11051103
tz->trips.active[i].flags.enabled = 1;

0 commit comments

Comments
 (0)