diff mbox series

[7/7] IPC: do not overwrite message type

Message ID 20200319100529.31509-8-sbabic@denx.de
State Accepted
Headers show
Series Extend IPC to change AES Key | expand

Commit Message

Stefano Babic March 19, 2020, 10:05 a.m. UTC
Up now commands can be sent to a SWUpdate subprocess only. This will
change and additional commands can be sent to rule SWUpdate at runtime.
Remove the hardcoded message type in ipc_send_cmd(), that can be reused
to send any IPC command to SWUpdate.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 ipc/network_ipc.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/ipc/network_ipc.c b/ipc/network_ipc.c
index 382f1d0..d5dd918 100644
--- a/ipc/network_ipc.c
+++ b/ipc/network_ipc.c
@@ -297,7 +297,6 @@  int ipc_send_cmd(ipc_message *msg)
 
 	/* TODO: Check source type */
 	msg->magic = IPC_MAGIC;
-	msg->type = SWUPDATE_SUBPROCESS;
 	ret = write(connfd, msg, sizeof(*msg));
 	if (ret != sizeof(*msg)) {
 		close(connfd);