From: Randy Dunlap Date: Wed, 29 Nov 2006 21:15:17 +0000 (-0800) Subject: [PATCH] sundance: use NULL for pointer X-Git-Tag: v2.6.20-rc1~15^2~9^2~464^2~31 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=bca79eb7e7a1855947864952fcd878a5ae7b5c92;p=linux-block.git [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 Signed-off-by: Jeff Garzik --- 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);