aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/bearer.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/bearer.c')
-rw-r--r--net/tipc/bearer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c
index a71f31879cb3..ae5b44ca1c1e 100644
--- a/net/tipc/bearer.c
+++ b/net/tipc/bearer.c
@@ -235,7 +235,6 @@ static int tipc_enable_bearer(struct net *net, const char *name,
235{ 235{
236 struct tipc_net *tn = tipc_net(net); 236 struct tipc_net *tn = tipc_net(net);
237 struct tipc_bearer_names b_names; 237 struct tipc_bearer_names b_names;
238 u32 self = tipc_own_addr(net);
239 int with_this_prio = 1; 238 int with_this_prio = 1;
240 struct tipc_bearer *b; 239 struct tipc_bearer *b;
241 struct tipc_media *m; 240 struct tipc_media *m;
@@ -244,7 +243,7 @@ static int tipc_enable_bearer(struct net *net, const char *name,
244 int res = -EINVAL; 243 int res = -EINVAL;
245 char *errstr = ""; 244 char *errstr = "";
246 245
247 if (!self) { 246 if (!tipc_own_id(net)) {
248 errstr = "not supported in standalone mode"; 247 errstr = "not supported in standalone mode";
249 res = -ENOPROTOOPT; 248 res = -ENOPROTOOPT;
250 goto rejected; 249 goto rejected;