[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1260305854-31472-4-git-send-email-iws@ovro.caltech.edu>
Date: Tue, 8 Dec 2009 12:57:32 -0800
From: "Ira W. Snyder" <iws@...o.caltech.edu>
To: alacrityvm-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: [PATCH] vbus-enet: fix sparse warnings
Fix the following sparse warnings:
drivers/net/vbus-enet.c:411:9: warning: Using plain integer as NULL pointer
drivers/net/vbus-enet.c:1250:24: warning: Using plain integer as NULL pointer
drivers/net/vbus-enet.c:1326:24: warning: Using plain integer as NULL pointer
Signed-off-by: Ira W. Snyder <iws@...o.caltech.edu>
---
drivers/net/vbus-enet.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/vbus-enet.c b/drivers/net/vbus-enet.c
index 4e9ecac..8232215 100644
--- a/drivers/net/vbus-enet.c
+++ b/drivers/net/vbus-enet.c
@@ -408,7 +408,7 @@ tx_setup(struct vbus_enet_priv *priv)
priv->pmtd.pool = pool;
ret = dev->ops->shm(dev, NULL, shmid, 0, pool, poollen,
- 0, NULL, 0);
+ NULL, NULL, 0);
BUG_ON(ret < 0);
}
@@ -1239,7 +1239,7 @@ vbus_enet_evq_negcap(struct vbus_enet_priv *priv, unsigned long count)
priv->evq.pool = pool;
ret = dev->ops->shm(dev, NULL, query.dpid, 0,
- pool, poollen, 0, NULL, 0);
+ pool, poollen, NULL, NULL, 0);
if (ret < 0)
return ret;
@@ -1315,7 +1315,7 @@ vbus_enet_l4ro_negcap(struct vbus_enet_priv *priv, unsigned long count)
* pre-mapped descriptor pool
*/
ret = dev->ops->shm(dev, NULL, query.dpid, 0,
- pool, poollen, 0, NULL, 0);
+ pool, poollen, NULL, NULL, 0);
if (ret < 0) {
printk(KERN_ERR "Error registering L4RO pool: %d\n",
ret);
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists