diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2021-12-28 18:01:03 +0800 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2022-02-02 13:18:51 -0600 |
commit | a181bcfca937b34467e6cd63d7de6073176616e1 (patch) | |
tree | b76f2a54cfa86928d76783b7260c2958d99c24b2 /drivers/firmware | |
parent | 043cfff99a18933fda2fb2e163daee73cc07910b (diff) |
firmware: ti_sci: inproper error handling of ti_sci_probe
goto out instead of returning directly in error exiting
Signed-off-by: Peiwei Hu <jlu.hpw@foxmail.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/tencent_0D5124AF8235001703711A7A09703F918806@qq.com
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/ti_sci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 5ae2040b8b02..4697edc125b1 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -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; } } |