netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1 net-next] tipc: replace 0 by NULL for pointers
@ 2014-12-25 11:05 Fabian Frederick
  2014-12-26  1:02 ` Ying Xue
  2014-12-31 18:11 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Fabian Frederick @ 2014-12-25 11:05 UTC (permalink / raw)
  To: linux-kernel
  Cc: Fabian Frederick, Jon Maloy, Allan Stephens, David S. Miller,
	netdev, tipc-discussion

Fix sparse warning:
net/tipc/link.c:1924:40: warning: Using plain integer as NULL pointer

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 net/tipc/link.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/tipc/link.c b/net/tipc/link.c
index 23bcc11..082c3b5 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;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-31 18:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-25 11:05 [PATCH 1/1 net-next] tipc: replace 0 by NULL for pointers Fabian Frederick
2014-12-26  1:02 ` Ying Xue
2014-12-31 18:11 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).