From 3884c14a1966e0934db2e07014cc68d90045581d Mon Sep 17 00:00:00 2001 From: occheung Date: Wed, 4 Sep 2024 14:39:43 +0800 Subject: [PATCH] satman coremgmt: code after reboot is unreachable --- src/satman/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/satman/src/main.rs b/src/satman/src/main.rs index a6baf5c3..1bd6db34 100644 --- a/src/satman/src/main.rs +++ b/src/satman/src/main.rs @@ -1263,7 +1263,8 @@ fn process_aux_packet( drtioaux::send(0, &drtioaux::Packet::CoreMgmtReply { succeeded: true })?; info!("reboot imminent"); slcr::reboot(); - Ok(()) + + unreachable!(); } drtioaux::Packet::CoreMgmtAllocatorDebugRequest { destination: _destination,