diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-01-16 16:21:04 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-01-16 16:21:04 -0500 |
commit | f652f6c5b7cfdf139f4155d78f397e99ae1c4acc (patch) | |
tree | 71c6344688bf56ea6aaf18c586ab69ff4f077ade /net/tipc/addr.c | |
parent | 140e3008e7fe1526cbb12f8f07dbc273ac713b75 (diff) | |
parent | c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5 (diff) |
Merge branch 'master' of /pub/scm/linux/kernel/git/jejb/scsi-post-merge-2.6 into for-linus
Diffstat (limited to 'net/tipc/addr.c')
-rw-r--r-- | net/tipc/addr.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/net/tipc/addr.c b/net/tipc/addr.c index 8a2e89bffde5..88463d9a6f12 100644 --- a/net/tipc/addr.c +++ b/net/tipc/addr.c | |||
@@ -35,11 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "core.h" | 37 | #include "core.h" |
38 | #include "dbg.h" | ||
39 | #include "addr.h" | 38 | #include "addr.h" |
40 | #include "zone.h" | ||
41 | #include "cluster.h" | ||
42 | #include "net.h" | ||
43 | 39 | ||
44 | /** | 40 | /** |
45 | * tipc_addr_domain_valid - validates a network domain address | 41 | * tipc_addr_domain_valid - validates a network domain address |
@@ -57,14 +53,8 @@ int tipc_addr_domain_valid(u32 addr) | |||
57 | u32 z = tipc_zone(addr); | 53 | u32 z = tipc_zone(addr); |
58 | u32 max_nodes = tipc_max_nodes; | 54 | u32 max_nodes = tipc_max_nodes; |
59 | 55 | ||
60 | if (is_slave(addr)) | ||
61 | max_nodes = LOWEST_SLAVE + tipc_max_slaves; | ||
62 | if (n > max_nodes) | 56 | if (n > max_nodes) |
63 | return 0; | 57 | return 0; |
64 | if (c > tipc_max_clusters) | ||
65 | return 0; | ||
66 | if (z > tipc_max_zones) | ||
67 | return 0; | ||
68 | 58 | ||
69 | if (n && (!z || !c)) | 59 | if (n && (!z || !c)) |
70 | return 0; | 60 | return 0; |