Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25-rc7 /net/tipc/cluster.c

Filename:/net/tipc/cluster.c
Lines Added:1
Lines Deleted:1
Also changed in: (Previous) 2.6.25-rc6  2.6.25-rc5  2.6.25-rc4  2.6.25-rc3-git6  2.6.25-rc3-git5  2.6.25-rc3-git4 
(Following) 2.6.25-rc8  2.6.25-rc9  2.6.25  2.6.26-git7  2.6.26-git8  2.6.26-git9 

Location
[  2.6.25-rc7
  [  net
    [  tipc
       o  cluster.c

Patch

diff --git a/net/tipc/cluster.c b/net/tipc/cluster.c
index 95b3739..4bb3404 100644
--- a/net/tipc/cluster.c
+++ b/net/tipc/cluster.c
@@ -142,7 +142,7 @@ void tipc_cltr_attach_node(struct cluster *c_ptr, struct node *n_ptr)
       max_n_num = tipc_highest_allowed_slave;
    assert(n_num > 0);
    assert(n_num <= max_n_num);
-   assert(c_ptr->nodes[n_num] == 0);
+   assert(c_ptr->nodes[n_num] == NULL);
    c_ptr->nodes[n_num] = n_ptr;
    if (n_num > c_ptr->highest_node)
       c_ptr->highest_node = n_num;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.