Skip to contentSkip to conversation

sundance: use NULL for pointer

PATCH New Randy Dunlap 1 participant 1 message Nov 29, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sundance: use NULL for pointer

From: Randy Dunlap <[email protected]>

Use NULL instead of 0 for pointers (cures sparse warnings).

drivers/net/sundance.c:1106:16: warning: Using plain integer as NULL pointer drivers/net/sundance.c:1652:16: warning: Using plain integer as NULL pointer

---
 drivers/net/sundance.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/sundance.c +2 -2
@@ -1103,7 +1103,7 @@ reset_tx (struct net_device *dev)
 	np->cur_tx = np->dirty_tx = 0;
 	np->cur_task = 0;
 
-	np->last_tx = 0;
+	np->last_tx = NULL;
 	iowrite8(127, ioaddr + TxDMAPollPeriod);
 
 	iowrite16 (StatsEnable | RxEnable | TxEnable, ioaddr + MACCtrl1);
@@ -1649,7 +1649,7 @@ static int netdev_close(struct net_devic
 	np->cur_tx = 0;
 	np->dirty_tx = 0;
 	np->cur_task = 0;
-	np->last_tx = 0;
+	np->last_tx = NULL;
 
 	netif_stop_queue(dev);
 

---