Commit a181bcfc authored by Peiwei Hu's avatar Peiwei Hu Committed by Nishanth Menon
Browse files

firmware: ti_sci: inproper error handling of ti_sci_probe



goto out instead of returning directly in error exiting

Signed-off-by: default avatarPeiwei Hu <jlu.hpw@foxmail.com>
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/tencent_0D5124AF8235001703711A7A09703F918806@qq.com
parent 043cfff9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3412,7 +3412,7 @@ static int ti_sci_probe(struct platform_device *pdev)
		ret = register_restart_handler(&info->nb);
		if (ret) {
			dev_err(dev, "reboot registration fail(%d)\n", ret);
			return ret;
			goto out;
		}
	}