Skip to content

Commit 0f348db

Browse files
Dan Carpenterdlezcano
authored andcommitted
thermal: ti-soc-thermal: Fix reversed condition in ti_thermal_expose_sensor()
This condition is reversed and will cause breakage. Fixes: 7440f51 ("thermal/drivers/ti-soc-thermal: Avoid dereferencing ERR_PTR") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/20200616091949.GA11940@mwanda
1 parent 8bcd017 commit 0f348db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/ti-soc-thermal/ti-thermal-common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id,
169169

170170
data = ti_bandgap_get_sensor_data(bgp, id);
171171

172-
if (!IS_ERR_OR_NULL(data))
172+
if (IS_ERR_OR_NULL(data))
173173
data = ti_thermal_build_data(bgp, id);
174174

175175
if (!data)

0 commit comments

Comments
 (0)