diff mbox series

Drop handling of exit status when install from file

Message ID 20201224141723.2780266-1-sbabic@denx.de
State Accepted
Headers show
Series Drop handling of exit status when install from file | expand

Commit Message

Stefano Babic Dec. 24, 2020, 2:17 p.m. UTC
It is not required anymore to handle the result of the update via local
file after merging the into the generic path.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 core/swupdate.c | 13 -------------
 1 file changed, 13 deletions(-)
diff mbox series

Patch

diff --git a/core/swupdate.c b/core/swupdate.c
index 1987063..4f008e0 100644
--- a/core/swupdate.c
+++ b/core/swupdate.c
@@ -866,19 +866,6 @@  int main(int argc, char **argv)
 
 	if (opt_i) {
 		result = install_from_file(fname, opt_c);
-		switch (result) {
-		case EXIT_FAILURE:
-			if (!swcfg.globals.dry_run && swcfg.bootloader_transaction_marker) {
-				bootloader_env_set(BOOTVAR_TRANSACTION, get_state_string(STATE_FAILED));
-			}
-			break;
-		case EXIT_SUCCESS:
-			notify(SUCCESS, 0, INFOLEVEL, NULL);
-			if (postupdate(&swcfg, NULL) != 0) {
-				ERROR("Post-update command execution failed.");
-			}
-			break;
-		}
 		cleanup_files(&swcfg);
 	}