Skip to content

Commit 34c4882

Browse files
Dan Carpentergregkh
authored andcommitted
thermal: ti-soc-thermal: Fix reversed condition in ti_thermal_expose_sensor()
[ Upstream commit 0f348db ] 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 Signed-off-by: Sasha Levin <[email protected]>
1 parent ebb2342 commit 34c4882

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
@@ -183,7 +183,7 @@ int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id,
183183

184184
data = ti_bandgap_get_sensor_data(bgp, id);
185185

186-
if (!IS_ERR_OR_NULL(data))
186+
if (IS_ERR_OR_NULL(data))
187187
data = ti_thermal_build_data(bgp, id);
188188

189189
if (!data)

0 commit comments

Comments
 (0)