summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-12-25 12:05:50 +0100
committerDavid S. Miller <davem@davemloft.net>2014-12-31 13:11:39 -0500
commit886eaa1fe668e75615a48df2ff68e23b762e31e8 (patch)
treeb353b17cd5463f52216fa5a5af8bba2933e26761
parentf230332fa4644da3c577f4eee52a4a348f1a4af4 (diff)
downloadlinux-886eaa1fe668e75615a48df2ff68e23b762e31e8.tar.bz2
tipc: replace 0 by NULL for pointers
Fix sparse warning: net/tipc/link.c:1924:40: warning: Using plain integer as NULL pointer Signed-off-by: Fabian Frederick <fabf@skynet.be> Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/tipc/link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c
index 23bcc1132365..082c3b5b32a1 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -1921,7 +1921,7 @@ static struct tipc_node *tipc_link_find_owner(const char *link_name,
{
struct tipc_link *l_ptr;
struct tipc_node *n_ptr;
- struct tipc_node *found_node = 0;
+ struct tipc_node *found_node = NULL;
int i;
*bearer_id = 0;