All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: most: networking: Fixed the warning of using integer as NULL
@ 2015-10-07  9:57 Shivani Bhardwaj
  2015-10-07 10:13 ` [Outreachy kernel] " Sudip Mukherjee
  0 siblings, 1 reply; 2+ messages in thread
From: Shivani Bhardwaj @ 2015-10-07  9:57 UTC (permalink / raw)
  To: outreachy-kernel

Fixed the warning generated by sparse : Using plain integer as NULL
pointer, by changing the value pointed to by nd->dev from 0 to NULL.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
 drivers/staging/most/aim-network/networking.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/most/aim-network/networking.c b/drivers/staging/most/aim-network/networking.c
index c8ab239..a1e1bce 100644
--- a/drivers/staging/most/aim-network/networking.c
+++ b/drivers/staging/most/aim-network/networking.c
@@ -295,7 +295,7 @@ static void most_net_rm_netdev_safe(struct net_dev_context *nd)
 
 	unregister_netdev(nd->dev);
 	free_netdev(nd->dev);
-	nd->dev = 0;
+	nd->dev = NULL;
 }
 
 static struct net_dev_context *get_net_dev_context(
-- 
2.1.0



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

* Re: [Outreachy kernel] [PATCH] Staging: most: networking: Fixed the warning of using integer as NULL
  2015-10-07  9:57 [PATCH] Staging: most: networking: Fixed the warning of using integer as NULL Shivani Bhardwaj
@ 2015-10-07 10:13 ` Sudip Mukherjee
  0 siblings, 0 replies; 2+ messages in thread
From: Sudip Mukherjee @ 2015-10-07 10:13 UTC (permalink / raw)
  To: Shivani Bhardwaj; +Cc: outreachy-kernel

On Wed, Oct 07, 2015 at 03:27:03PM +0530, Shivani Bhardwaj wrote:
> Fixed the warning generated by sparse : Using plain integer as NULL
> pointer, by changing the value pointed to by nd->dev from 0 to NULL.
> 
> Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
> ---
This has already been done by 1865e4ea0b2d ("Staging: most: Use NULL instead of zero")

Which tree are you using?

regards
sudip


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

end of thread, other threads:[~2015-10-07 10:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07  9:57 [PATCH] Staging: most: networking: Fixed the warning of using integer as NULL Shivani Bhardwaj
2015-10-07 10:13 ` [Outreachy kernel] " Sudip Mukherjee

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.