Skip to content
Commit dc0bd7aa authored by Adam Borowski's avatar Adam Borowski Committed by Bruce Ashfield
Browse files

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: default avatarAdam Borowski <kilobyte@angband.pl>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>

Backport e5b5d254 from mainline to fix build
error when we enable -Werror.
drivers/acpi/thermal.c:1101:21: error: the comparison will always evaluate as
'true' for the address of 'active' will never be NULL [-Waddress]
Signed-off-by: default avatarHe Zhe <zhe.he@windriver.com>

Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent f844c376
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment