From: Allan Stephens Date: Thu, 26 Apr 2012 21:17:39 +0000 (-0400) Subject: tipc: Optimize termination of configuration service X-Git-Tag: next-20120503~56^2~23^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eb323b075a360d59fabbbd58c0d7aeb951bfc647;p=karo-tx-linux.git 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 Signed-off-by: Paul Gortmaker --- diff --git a/net/tipc/config.c b/net/tipc/config.c index a4988cdbde6d..843d7ae04661 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; }