From d21c4d5b0e7f42fe09784f11fa5776ff305e4fdf Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 28 Aug 2023 10:22:43 +0200 Subject: ipcpd: Set IPCP states in common sources The state of the IPCP was set and checked in the main files, but it's more convenient to do it in the common source. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/unicast/main.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/ipcpd/unicast/main.c') diff --git a/src/ipcpd/unicast/main.c b/src/ipcpd/unicast/main.c index 994b1fd3..e1c3d5d0 100644 --- a/src/ipcpd/unicast/main.c +++ b/src/ipcpd/unicast/main.c @@ -129,10 +129,6 @@ static void finalize_components(void) static int start_components(void) { - assert(ipcp_get_state() == IPCP_INIT); - - ipcp_set_state(IPCP_OPERATIONAL); - if (dt_start() < 0) { log_err("Failed to start data transfer."); goto fail_dt_start; @@ -168,9 +164,6 @@ static int start_components(void) static void stop_components(void) { - assert(ipcp_get_state() == IPCP_OPERATIONAL || - ipcp_get_state() == IPCP_SHUTDOWN); - connmgr_stop(); enroll_stop(); -- cgit v1.2.3