diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2006-11-30 00:15:17 +0300 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-12-02 08:16:36 +0300 |
commit | bca79eb7e7a1855947864952fcd878a5ae7b5c92 (patch) | |
tree | bf89d47fee4226ef2520cba7624afa3db61328fb /drivers/net/sundance.c | |
parent | cb8011ad53e0855ef088e0e5a4bcb98fa90c70b6 (diff) | |
download | linux-bca79eb7e7a1855947864952fcd878a5ae7b5c92.tar.xz |
[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: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/sundance.c')
-rw-r--r-- | drivers/net/sundance.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sundance.c b/drivers/net/sundance.c index 02679e688c4c..c06ecc8002b9 100644 --- a/drivers/net/sundance.c +++ b/drivers/net/sundance.c @@ -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); |