summaryrefslogtreecommitdiff
path: root/net/tipc/config.c
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2012-04-26 21:17:39 (GMT)
committerPaul Gortmaker <paul.gortmaker@windriver.com>2012-04-26 21:19:43 (GMT)
commiteb323b075a360d59fabbbd58c0d7aeb951bfc647 (patch)
tree9ba2d1f9aa17e4b790ded6e49f7e61d631462577 /net/tipc/config.c
parent861d3a0e5bbc93b79b5739cfb4ea0fb553fe9407 (diff)
downloadlinux-fsl-qoriq-eb323b075a360d59fabbbd58c0d7aeb951bfc647.tar.xz
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>
Diffstat (limited to 'net/tipc/config.c')
-rw-r--r--net/tipc/config.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/tipc/config.c b/net/tipc/config.c
index a4988cd..843d7ae 100644
--- a/net/tipc/config.c
+++ b/net/tipc/config.c
@@ -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;
}