提交 eb323b07 编写于 作者: A Allan Stephens 提交者: Paul Gortmaker

tipc: Optimize termination of configuration service

Termination no longer tests to see if the configuration service
port was successfully created or not. In the unlikely event that the
port was not created, attempting to delete the non-existent port is
detected gracefully and causes no harm.
Signed-off-by: NAllan Stephens <allan.stephens@windriver.com>
Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
上级 861d3a0e
......@@ -506,8 +506,6 @@ void tipc_cfg_reinit(void)
void tipc_cfg_stop(void)
{
if (config_port_ref) {
tipc_deleteport(config_port_ref);
config_port_ref = 0;
}
tipc_deleteport(config_port_ref);
config_port_ref = 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册