projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
527bb3a
)
of: overlay: Avoid spurious error messages in of_overlay_remove()
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Fri, 24 Oct 2025 19:50:58 +0000
(21:50 +0200)
committer
Rob Herring (Arm)
<robh@kernel.org>
Mon, 17 Nov 2025 17:24:51 +0000
(11:24 -0600)
Make of_overlay_remove() tolerate ovcs_id being 0 without logging an error.
Suggested-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link:
https://patch.msgid.link/f756e04e8bc239b33a0428c2dd055f202e214f0b.1761335298.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/overlay.c
patch
|
blob
|
history
diff --git
a/drivers/of/overlay.c
b/drivers/of/overlay.c
index
255e836
..
5b4f422
100644
(file)
--- a/
drivers/of/overlay.c
+++ b/
drivers/of/overlay.c
@@
-1190,6
+1190,9
@@
int of_overlay_remove(int *ovcs_id)
struct overlay_changeset *ovcs;
int ret, ret_apply, ret_tmp;
+ if (*ovcs_id == 0)
+ return 0;
+
if (devicetree_corrupt()) {
pr_err("suspect devicetree state, refuse to remove overlay\n");
ret = -EBUSY;