summaryrefslogtreecommitdiffstats
path: root/net/tipc/core.c
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2012-08-16 12:09:10 +0000
committerDavid S. Miller <davem@davemloft.net>2012-08-20 02:26:30 -0700
commit379c0456afc170d56ceb712a5689ede91d293e88 (patch)
tree6118e094f24d8160dda7bcad5250e3fa22e5c2ba /net/tipc/core.c
parent381294331ed2858f8e75223310f873d580921366 (diff)
downloadop-kernel-dev-379c0456afc170d56ceb712a5689ede91d293e88.zip
op-kernel-dev-379c0456afc170d56ceb712a5689ede91d293e88.tar.gz
tipc: change tipc_net_start routine return value type
Since now tipc_net_start() always returns a success code - 0, its return value type should be changed from integer to void, which can avoid unnecessary check for its return value. Signed-off-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/core.c')
-rw-r--r--net/tipc/core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/tipc/core.c b/net/tipc/core.c
index c261a5d..daae7f7 100644
--- a/net/tipc/core.c
+++ b/net/tipc/core.c
@@ -98,9 +98,8 @@ int tipc_core_start_net(unsigned long addr)
{
int res;
- res = tipc_net_start(addr);
- if (!res)
- res = tipc_eth_media_start();
+ tipc_net_start(addr);
+ res = tipc_eth_media_start();
if (res)
tipc_core_stop_net();
return res;
OpenPOWER on IntegriCloud