projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f230332
)
tipc: replace 0 by NULL for pointers
author
Fabian Frederick
<fabf@skynet.be>
Thu, 25 Dec 2014 11:05:50 +0000
(12:05 +0100)
committer
David S. Miller
<davem@davemloft.net>
Wed, 31 Dec 2014 18:11:39 +0000
(13:11 -0500)
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>
net/tipc/link.c
patch
|
blob
|
blame
|
history
diff --git
a/net/tipc/link.c
b/net/tipc/link.c
index 23bcc1132365128de97ee2de41c9465b1b5d03ff..082c3b5b32a12094806db13c46a93994781379d0 100644
(file)
--- 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;