[PATCH 2/2] reboot-mode: drop now unnecessary check

Sascha Hauer s.hauer at pengutronix.de
Mon Mar 22 11:24:12 GMT 2021


The reboot mode fixup tests if it is the live tree before modifying
anything. This is unnecessary now as the live tree is never passed
to fixups anymore.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/power/reset/reboot-mode.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/power/reset/reboot-mode.c b/drivers/power/reset/reboot-mode.c
index df3be03edf..d9b51dfea6 100644
--- a/drivers/power/reset/reboot-mode.c
+++ b/drivers/power/reset/reboot-mode.c
@@ -71,10 +71,6 @@ static int of_reboot_mode_fixup(struct device_node *root, void *ctx)
 	srcnp = reboot->dev->device_node;
 	dstnp = of_get_node_by_reproducible_name(root, srcnp);
 
-	/* nothing to do when called on barebox-internal tree */
-	if (srcnp == dstnp)
-		return 0;
-
 	if (dstnp) {
 		dstparent = dstnp->parent;
 		of_delete_node(dstnp);
-- 
2.29.2




More information about the barebox mailing list