projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa55b7d
)
ACPI: thermal: drop an always true check
author
Adam Borowski
<kilobyte@angband.pl>
Mon, 15 Nov 2021 17:32:08 +0000
(18:32 +0100)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Tue, 16 Nov 2021 19:32:48 +0000
(20:32 +0100)
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>
drivers/acpi/thermal.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/thermal.c
b/drivers/acpi/thermal.c
index 95105db642b9823dbdcab603c516d7f6edf1df6e..155bbabcc6f5da556c71e68446c46c83d6d1540a 100644
(file)
--- 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;