summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2021-11-15 18:32:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-09 10:22:53 +0200
commita4eaf3475ab11930929d8f71eae1324a41902aee (patch)
tree3193e2ed9d16ed3c9500f54ddcf55245d722ca2f
parent40ea89a47136e6163150a13d2ac2f3674865e739 (diff)
downloadlinux-stable-a4eaf3475ab11930929d8f71eae1324a41902aee.tar.gz
linux-stable-a4eaf3475ab11930929d8f71eae1324a41902aee.tar.bz2
linux-stable-a4eaf3475ab11930929d8f71eae1324a41902aee.zip
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: Adam Borowski <kilobyte@angband.pl> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/acpi/thermal.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index 3bdab6eb33bf..cceb5ca357de 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -1172,8 +1172,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;