Skip to content

Commit

Permalink
thermal: rcar_gen3_thermal: Remove unneeded curly brackets
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Niklas Söderlund authored and Daniel Lezcano committed Mar 12, 2020
1 parent 2f8caa9 commit d543c84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/thermal/rcar_gen3_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d543c84

Please sign in to comment.