netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] net/smsc911x: Use NULL instead of integer for pointer
@ 2013-03-19  7:01 Sachin Kamat
  2013-03-19 14:20 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2013-03-19  7:01 UTC (permalink / raw)
  To: netdev; +Cc: steve.glendinning, davem, sachin.kamat

Silences the following sparse warning:
drivers/net/ethernet/smsc/smsc911x.c:2145:30:
warning: Using plain integer as NULL pointer

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/net/ethernet/smsc/smsc911x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index df77df1..3663b9e 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -2142,7 +2142,7 @@ static int smsc911x_init(struct net_device *dev)
 	spin_lock_init(&pdata->dev_lock);
 	spin_lock_init(&pdata->mac_lock);
 
-	if (pdata->ioaddr == 0) {
+	if (pdata->ioaddr == NULL) {
 		SMSC_WARN(pdata, probe, "pdata->ioaddr: 0x00000000");
 		return -ENODEV;
 	}
-- 
1.7.4.1

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

* Re: [PATCH 1/1] net/smsc911x: Use NULL instead of integer for pointer
  2013-03-19  7:01 [PATCH 1/1] net/smsc911x: Use NULL instead of integer for pointer Sachin Kamat
@ 2013-03-19 14:20 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-03-19 14:20 UTC (permalink / raw)
  To: sachin.kamat; +Cc: netdev, steve.glendinning

From: Sachin Kamat <sachin.kamat@linaro.org>
Date: Tue, 19 Mar 2013 12:31:38 +0530

> Silences the following sparse warning:
> drivers/net/ethernet/smsc/smsc911x.c:2145:30:
> warning: Using plain integer as NULL pointer
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Applied, thanks.

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

end of thread, other threads:[~2013-03-19 14:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-19  7:01 [PATCH 1/1] net/smsc911x: Use NULL instead of integer for pointer Sachin Kamat
2013-03-19 14:20 ` 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).