projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
043cfff
)
firmware: ti_sci: inproper error handling of ti_sci_probe
author
Peiwei Hu
<jlu.hpw@foxmail.com>
Tue, 28 Dec 2021 10:01:03 +0000
(18:01 +0800)
committer
Nishanth Menon
<nm@ti.com>
Wed, 2 Feb 2022 19:18:51 +0000
(13:18 -0600)
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
drivers/firmware/ti_sci.c
patch
|
blob
|
history
diff --git
a/drivers/firmware/ti_sci.c
b/drivers/firmware/ti_sci.c
index 5ae2040b8b02adf34e4281211a5bffa79f9002ee..4697edc125b12303da2f0b2198251a108f66c26c 100644
(file)
--- 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 re
t;
+
goto ou
t;
}
}