diff mbox series

[5/6] Drop REQ_INSTALL_DRYRUN

Message ID 20201111120327.607444-6-sbabic@denx.de
State Changes Requested
Headers show
Series Rework and extend IPC for install | expand

Commit Message

Stefano Babic Nov. 11, 2020, 12:03 p.m. UTC
This becomes obsolete because the dry-run option becomes an option in
the request install (swupdate_request) structure.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 core/network_thread.c       | 1 -
 doc/source/swupdate-ipc.rst | 2 +-
 include/network_ipc.h       | 1 -
 3 files changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/core/network_thread.c b/core/network_thread.c
index a3c10a0..6757cc4 100644
--- a/core/network_thread.c
+++ b/core/network_thread.c
@@ -345,7 +345,6 @@  void *network_thread (void *data)
 
 				break;
 			case REQ_INSTALL:
-			case REQ_INSTALL_DRYRUN:
 				TRACE("Incoming network request: processing...");
 				if (instp->status == IDLE) {
 					instp->fd = ctrlconnfd;
diff --git a/doc/source/swupdate-ipc.rst b/doc/source/swupdate-ipc.rst
index d9390c9..a3ccb13 100644
--- a/doc/source/swupdate-ipc.rst
+++ b/doc/source/swupdate-ipc.rst
@@ -42,7 +42,7 @@  The exchanged packets are described in network_ipc.h
 Where the fields have the meaning:
 
 - magic : a magic number as simple proof of the packet
-- type : one of REQ_INSTALL, REQ_INSTALL_DRYRUN, ACK, NACK,
+- type : one of REQ_INSTALL, ACK, NACK,
   GET_STATUS, POST_UPDATE, SWUPDATE_SUBPROCESS, SET_AES_KEY
 - msgdata : a buffer used by the client to send the image
   or by SWUpdate to report back notifications and status.
diff --git a/include/network_ipc.h b/include/network_ipc.h
index 9558183..2e6f75d 100644
--- a/include/network_ipc.h
+++ b/include/network_ipc.h
@@ -33,7 +33,6 @@  typedef enum {
 	GET_STATUS,
 	POST_UPDATE,
 	SWUPDATE_SUBPROCESS,
-	REQ_INSTALL_DRYRUN,
 	SET_AES_KEY,
 	SET_UPDATE_STATE,	/* set bootloader ustate */
 	REQ_INSTALL_EXT