Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 253d7023 authored by Adam Borowski's avatar Adam Borowski Committed by Greg Kroah-Hartman
Browse files

ACPI: thermal: drop an always true check



commit e5b5d25444e9ee3ae439720e62769517d331fa39 upstream.

Address of a field inside a struct can't possibly be null; gcc-12 warns
about this.

Signed-off-by: default avatarAdam Borowski <kilobyte@angband.pl>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a010f8e6
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1153,8 +1153,6 @@ static int acpi_thermal_resume(struct device *dev)
		return -EINVAL;

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