mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 18:12:48 +00:00
device_property_read_foo() returns 0 on success and only then modifies
'val'. Currently, val is left uninitialized if the aforementioned
function returns non-zero, making nhi_wake_supported() return true
almost always (random != 0) if the property is not present in device
firmware.
Invert the check to make it make sense.
Fixes: 3cdb9446a1 ("thunderbolt: Add support for Intel Ice Lake")
Cc: [email protected]
Signed-off-by: Konrad Dybcio <[email protected]>
Signed-off-by: Mika Westerberg <[email protected]>