Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bca79eb7 authored by Randy Dunlap's avatar Randy Dunlap Committed by Jeff Garzik
Browse files

[PATCH] sundance: use NULL for pointer



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

Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent cb8011ad
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1102,7 +1102,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);
@@ -1648,7 +1648,7 @@ static int netdev_close(struct net_device *dev)
	np->cur_tx = 0;
	np->dirty_tx = 0;
	np->cur_task = 0;
	np->last_tx = 0;
	np->last_tx = NULL;

	netif_stop_queue(dev);