mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
parent
861d3a0e5b
commit
eb323b075a
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue