Skip to contentSkip to conversation

oftree command: Allow free stored dtb before load

PATCH Applied Jan Weitzel 2 participants 2 messages Dec 19, 2013 – Jan 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oftree command: Allow free stored dtb before load

Don't return after freeing stored devicetree if also loading ist wanted. Allow "oftree -f -l my.dtb"

---
 commands/oftree.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
commands/oftree.c +2 -1
index 475f019..3fa516c 100644
@@ -88,7 +88,8 @@ static int do_oftree(int argc, char *argv[])
 		if (root)
 			of_delete_node(root);
 
-		return 0;
+		if (!load)
+			return 0;
 	}
 
 	if (optind < argc)
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 4 lines · Jan Weitzel

Don't return after freeing stored devicetree if also loading ist wanted. Allow "oftree -f -l my.dtb"

Applied, thanks

Sascha

Quoted 27 lines
---
 commands/oftree.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
commands/oftree.c +2 -1
index 475f019..3fa516c 100644
@@ -88,7 +88,8 @@ static int do_oftree(int argc, char *argv[])
 		if (root)
 			of_delete_node(root);
 
-		return 0;
+		if (!load)
+			return 0;
 	}
 
 	if (optind < argc)
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox