]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
tipc: Eliminate support for tipc_mode global variable
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 8 Nov 2011 18:48:28 +0000 (13:48 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 24 Feb 2012 22:05:17 +0000 (17:05 -0500)
commitb58343f9ea75f02ef48b984767511c6b3ba76eaf
tree9569124c832d5ff91f4a2191a13f31ac8c59f0d7
parent077a26f029e76a5918edf9c1d44d5566eec719fc
tipc: Eliminate support for tipc_mode global variable

Removes all references to the global variable that records whether
TIPC is running in "single node" mode or "network" mode, since this
information can be easily deduced from the global variable that
records TIPC's network address. (i.e. a non-zero network address
means that TIPC is running in network mode.)

The changes made update most existing mode-based checks to use the
network address global variable. A few checks that are no longer
needed are removed entirely, along with any associated code lying on
non-executable control paths.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/bearer.c
net/tipc/config.c
net/tipc/core.c
net/tipc/core.h
net/tipc/net.c
net/tipc/node.c