Skip to content

Commit

Permalink
[PATCH] sundance: use NULL for pointer
Browse files Browse the repository at this point in the history
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: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Randy Dunlap authored and Jeff Garzik committed Dec 2, 2006
1 parent cb8011a commit bca79eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/sundance.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit bca79eb

Please sign in to comment.