diff options
author | Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> | 2020-02-12 23:47:32 +0100 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-03-12 11:40:57 +0100 |
commit | d543c8424c116549c4322ff0341e388452aca0ea (patch) | |
tree | 349af3e26e130f572e4efc71678b2ba877786136 /drivers/thermal/rcar_gen3_thermal.c | |
parent | dt-bindings: thermal: tsens: Add configuration in yaml (diff) | |
download | linux-d543c8424c116549c4322ff0341e388452aca0ea.tar.xz linux-d543c8424c116549c4322ff0341e388452aca0ea.zip |
thermal: rcar_gen3_thermal: Remove unneeded curly brackets
When devm_add_action() was turned into devm_add_action_or_reset() the
curly brackets for the error case where kept but are not needed, remove
them to match the style of the driver.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200212224732.736785-1-niklas.soderlund+renesas@ragnatech.se
Diffstat (limited to 'drivers/thermal/rcar_gen3_thermal.c')
-rw-r--r-- | drivers/thermal/rcar_gen3_thermal.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thermal/rcar_gen3_thermal.c b/drivers/thermal/rcar_gen3_thermal.c index 72877bdc072d..e877c90c5c8b 100644 --- a/drivers/thermal/rcar_gen3_thermal.c +++ b/drivers/thermal/rcar_gen3_thermal.c @@ -446,9 +446,8 @@ static int rcar_gen3_thermal_probe(struct platform_device *pdev) goto error_unregister; ret = devm_add_action_or_reset(dev, rcar_gen3_hwmon_action, zone); - if (ret) { + if (ret) goto error_unregister; - } ret = of_thermal_get_ntrips(tsc->zone); if (ret < 0) |