aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/addr.c')
-rw-r--r--net/tipc/addr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/tipc/addr.c b/net/tipc/addr.c
index 8823e03e52e0..483868a75b88 100644
--- a/net/tipc/addr.c
+++ b/net/tipc/addr.c
@@ -35,7 +35,8 @@
35 */ 35 */
36 36
37#include "core.h" 37#include "core.h"
38#include "cluster.h" 38#include "node.h"
39#include "addr.h"
39 40
40/** 41/**
41 * tipc_addr_domain_valid - validates a network domain address 42 * tipc_addr_domain_valid - validates a network domain address
@@ -55,8 +56,6 @@ int tipc_addr_domain_valid(u32 addr)
55 56
56 if (n > max_nodes) 57 if (n > max_nodes)
57 return 0; 58 return 0;
58 if (c > tipc_max_clusters)
59 return 0;
60 59
61 if (n && (!z || !c)) 60 if (n && (!z || !c))
62 return 0; 61 return 0;