diff options
author | Peiwei Hu <[email protected]> | 2021-12-28 18:01:03 +0800 |
---|---|---|
committer | Nishanth Menon <[email protected]> | 2022-02-02 13:18:51 -0600 |
commit | a181bcfca937b34467e6cd63d7de6073176616e1 (patch) | |
tree | b76f2a54cfa86928d76783b7260c2958d99c24b2 | |
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 <[email protected]>
Signed-off-by: Nishanth Menon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-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; } } |