From: Adam Borowski Date: Mon, 15 Nov 2021 17:32:08 +0000 (+0100) Subject: ACPI: thermal: drop an always true check X-Git-Tag: v5.17-rc1~168^2^6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5b5d25444e9ee3ae439720e62769517d331fa39;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 95105db642b98..155bbabcc6f5d 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c @@ -1098,8 +1098,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;