mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 23:11:57 +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:
parent
942999edb9
commit
7019e72c7b
@ -340,8 +340,6 @@ pub fn init_child() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::process::exit(-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn do_init_child(cwfd: RawFd) -> Result<()> {
|
fn do_init_child(cwfd: RawFd) -> Result<()> {
|
||||||
@ -647,8 +645,6 @@ fn do_init_child(cwfd: RawFd) -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
do_exec(&args);
|
do_exec(&args);
|
||||||
|
|
||||||
Err(anyhow!("fail to create container"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl BaseContainer for LinuxContainer {
|
impl BaseContainer for LinuxContainer {
|
||||||
|
Loading…
Reference in New Issue
Block a user