diff options
author | David S. Miller <davem@davemloft.net> | 2014-03-05 20:32:02 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-05 20:32:02 -0500 |
commit | 67ddc87f162e2d0e29db2b6b21c5a3fbcb8be206 (patch) | |
tree | c83ac73e3d569156d4b7f3dab3e7e27e0054cd0d /net/tipc/socket.c | |
parent | 6092c79fd00ce48ee8698955ea6419cc5cd65641 (diff) | |
parent | c3bebc71c4bcdafa24b506adf0c1de3c1f77e2e0 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
drivers/net/wireless/ath/ath9k/recv.c
drivers/net/wireless/mwifiex/pcie.c
net/ipv6/sit.c
The SIT driver conflict consists of a bug fix being done by hand
in 'net' (missing u64_stats_init()) whilst in 'net-next' a helper
was created (netdev_alloc_pcpu_stats()) which takes care of this.
The two wireless conflicts were overlapping changes.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r-- | net/tipc/socket.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index fb885977bd2a..336e18d6cf46 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
@@ -70,8 +70,6 @@ static const struct proto_ops msg_ops; | |||
70 | static struct proto tipc_proto; | 70 | static struct proto tipc_proto; |
71 | static struct proto tipc_proto_kern; | 71 | static struct proto tipc_proto_kern; |
72 | 72 | ||
73 | static int sockets_enabled; | ||
74 | |||
75 | /* | 73 | /* |
76 | * Revised TIPC socket locking policy: | 74 | * Revised TIPC socket locking policy: |
77 | * | 75 | * |
@@ -2029,8 +2027,6 @@ int tipc_socket_init(void) | |||
2029 | proto_unregister(&tipc_proto); | 2027 | proto_unregister(&tipc_proto); |
2030 | goto out; | 2028 | goto out; |
2031 | } | 2029 | } |
2032 | |||
2033 | sockets_enabled = 1; | ||
2034 | out: | 2030 | out: |
2035 | return res; | 2031 | return res; |
2036 | } | 2032 | } |
@@ -2040,10 +2036,6 @@ int tipc_socket_init(void) | |||
2040 | */ | 2036 | */ |
2041 | void tipc_socket_stop(void) | 2037 | void tipc_socket_stop(void) |
2042 | { | 2038 | { |
2043 | if (!sockets_enabled) | ||
2044 | return; | ||
2045 | |||
2046 | sockets_enabled = 0; | ||
2047 | sock_unregister(tipc_family_ops.family); | 2039 | sock_unregister(tipc_family_ops.family); |
2048 | proto_unregister(&tipc_proto); | 2040 | proto_unregister(&tipc_proto); |
2049 | } | 2041 | } |