summaryrefslogtreecommitdiffstats
path: root/net/tipc/zone.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-02-25 03:38:31 +0100
committerDavid S. Miller <davem@davemloft.net>2008-02-25 03:38:31 +0100
commit5f2f40a92e007ec5b503db20f3f70cb331c64f65 (patch)
tree685e4655c26258d68d3a2c7fdcb584a30f738b5b /net/tipc/zone.c
parentMerge branch 'upstream-davem' of master.kernel.org:/pub/scm/linux/kernel/git/... (diff)
downloadlinux-5f2f40a92e007ec5b503db20f3f70cb331c64f65.tar.xz
linux-5f2f40a92e007ec5b503db20f3f70cb331c64f65.zip
tipc: fix integer as NULL pointer sparse warnings in tipc
net/tipc/cluster.c:145:2: warning: Using plain integer as NULL pointer net/tipc/link.c:3254:36: warning: Using plain integer as NULL pointer net/tipc/ref.c:151:15: warning: Using plain integer as NULL pointer net/tipc/zone.c:85:2: warning: Using plain integer as NULL pointer Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/zone.c')
-rw-r--r--net/tipc/zone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/zone.c b/net/tipc/zone.c
index 114e173f11a5..3506f8563441 100644
--- a/net/tipc/zone.c
+++ b/net/tipc/zone.c
@@ -82,7 +82,7 @@ void tipc_zone_attach_cluster(struct _zone *z_ptr, struct cluster *c_ptr)
assert(c_ptr->addr);
assert(c_num <= tipc_max_clusters);
- assert(z_ptr->clusters[c_num] == 0);
+ assert(z_ptr->clusters[c_num] == NULL);
z_ptr->clusters[c_num] = c_ptr;
}