mirror of https://gitee.com/openkylin/linux.git
thermal: rcar_thermal: Add missing braces to conditional statement
According to Documentation/process/coding-style.rst, if one branch of a
conditional statement needs braces, both branches should use braces.
Fixes: bbcf90c064
("thermal: Explicitly enable non-changing thermal zone devices")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200819092716.3191-1-geert+renesas@glider.be
This commit is contained in:
parent
6ad1c515b8
commit
392573b73e
|
@ -546,11 +546,11 @@ static int rcar_thermal_probe(struct platform_device *pdev)
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto error_unregister;
|
goto error_unregister;
|
||||||
|
|
||||||
if (chip->use_of_thermal)
|
if (chip->use_of_thermal) {
|
||||||
priv->zone = devm_thermal_zone_of_sensor_register(
|
priv->zone = devm_thermal_zone_of_sensor_register(
|
||||||
dev, i, priv,
|
dev, i, priv,
|
||||||
&rcar_thermal_zone_of_ops);
|
&rcar_thermal_zone_of_ops);
|
||||||
else {
|
} else {
|
||||||
priv->zone = thermal_zone_device_register(
|
priv->zone = thermal_zone_device_register(
|
||||||
"rcar_thermal",
|
"rcar_thermal",
|
||||||
1, 0, priv,
|
1, 0, priv,
|
||||||
|
|
Loading…
Reference in New Issue