mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
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>
This commit is contained in:
parent
323dbaba2c
commit
5f2f40a92e
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue