Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751295AbaLZBCj (ORCPT ); Thu, 25 Dec 2014 20:02:39 -0500 Received: from mail.windriver.com ([147.11.1.11]:40010 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751046AbaLZBCe (ORCPT ); Thu, 25 Dec 2014 20:02:34 -0500 Message-ID: <549CB39A.1050504@windriver.com> Date: Fri, 26 Dec 2014 09:02:18 +0800 From: Ying Xue User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Fabian Frederick , CC: Jon Maloy , Allan Stephens , "David S. Miller" , , Subject: Re: [PATCH 1/1 net-next] tipc: replace 0 by NULL for pointers References: <1419505550-17336-1-git-send-email-fabf@skynet.be> In-Reply-To: <1419505550-17336-1-git-send-email-fabf@skynet.be> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [128.224.163.180] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- Acked-by: Ying Xue > 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; > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/