mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 17:37:20 +00:00 
			
		
		
		
	agent: remove unreachable code
The code in the end of init_child is unreachable and need to be removed. The code after do_exec is unreachable and need to be removed. Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
		| @@ -340,8 +340,6 @@ pub fn init_child() { | ||||
|             return; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     std::process::exit(-1); | ||||
| } | ||||
|  | ||||
| fn do_init_child(cwfd: RawFd) -> Result<()> { | ||||
| @@ -647,8 +645,6 @@ fn do_init_child(cwfd: RawFd) -> Result<()> { | ||||
|     } | ||||
|  | ||||
|     do_exec(&args); | ||||
|  | ||||
|     Err(anyhow!("fail to create container")) | ||||
| } | ||||
|  | ||||
| impl BaseContainer for LinuxContainer { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user