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>
This commit is contained in:
committed by
David S. Miller
parent
381294331e
commit
379c0456af
@@ -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;
|
||||
|
Reference in New Issue
Block a user