* [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; 4+ 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] 4+ messages in thread
* Re: [PATCH 1/1 net-next] tipc: replace 0 by NULL for pointers
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
1 sibling, 0 replies; 4+ messages in thread
From: Ying Xue @ 2014-12-26 1:02 UTC (permalink / raw)
To: Fabian Frederick, linux-kernel
Cc: Jon Maloy, Allan Stephens, David S. Miller, netdev, tipc-discussion
On 12/25/2014 07:05 PM, Fabian Frederick wrote:
> 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>
> 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;
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1 net-next] tipc: replace 0 by NULL for pointers
2014-12-25 11:05 [PATCH 1/1 net-next] tipc: replace 0 by NULL for pointers Fabian Frederick
@ 2014-12-31 18:11 ` David Miller
2014-12-31 18:11 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2014-12-31 18:11 UTC (permalink / raw)
To: fabf; +Cc: linux-kernel, jon.maloy, allan.stephens, netdev, tipc-discussion
From: Fabian Frederick <fabf@skynet.be>
Date: Thu, 25 Dec 2014 12:05:50 +0100
> Fix sparse warning:
> net/tipc/link.c:1924:40: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
Applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1 net-next] tipc: replace 0 by NULL for pointers
@ 2014-12-31 18:11 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2014-12-31 18:11 UTC (permalink / raw)
To: fabf; +Cc: jon.maloy, netdev, tipc-discussion, linux-kernel, allan.stephens
From: Fabian Frederick <fabf@skynet.be>
Date: Thu, 25 Dec 2014 12:05:50 +0100
> Fix sparse warning:
> net/tipc/link.c:1924:40: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
Applied, thanks.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-12-31 18:12 UTC | newest]
Thread overview: 4+ 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
2014-12-31 18:11 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.