thermal/drivers/k3_j72xx_bandgap: Simplify k3_thermal_get_temp() function
authorBryan Brattlof <bb@ti.com>
Mon, 31 Oct 2022 23:26:52 +0000 (18:26 -0500)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Wed, 14 Dec 2022 14:25:40 +0000 (15:25 +0100)
commit46cab93ab49f303a7abbcf920cf9ef95d02a113c
treeb367472f32229f59d8b93d3f6a002b56181fad58
parent2baad2496383c6036bdb0945ef8aa6b1a5d18c19
thermal/drivers/k3_j72xx_bandgap: Simplify k3_thermal_get_temp() function

The k3_thermal_get_temp() function can be simplified to return only
the result of k3_bgp_read_temp() without needing the 'ret' variable

Signed-off-by: Bryan Brattlof <bb@ti.com>
Link: https://lore.kernel.org/r/20221031232702.10339-2-bb@ti.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
drivers/thermal/k3_j72xx_bandgap.c