提交 a181bcfc 编写于 作者: P Peiwei Hu 提交者: Nishanth Menon

firmware: ti_sci: inproper error handling of ti_sci_probe

goto out instead of returning directly in error exiting
Signed-off-by: NPeiwei Hu <jlu.hpw@foxmail.com>
Signed-off-by: NNishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/tencent_0D5124AF8235001703711A7A09703F918806@qq.com
上级 043cfff9
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册