summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/smsc
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-03-18 22:01:38 +0100
committerDavid S. Miller <davem@davemloft.net>2013-03-19 15:20:27 +0100
commit6fed9592de7bd9c904ab476c3e264a18d1cf3598 (patch)
treece013ce231c7418fef05b8daf6fca1a390a96222 /drivers/net/ethernet/smsc
parentmrf24j40: Fix byte-order of IEEE address (diff)
downloadlinux-6fed9592de7bd9c904ab476c3e264a18d1cf3598.tar.xz
linux-6fed9592de7bd9c904ab476c3e264a18d1cf3598.zip
net/smsc911x: Use NULL instead of integer for pointer
Silences the following sparse warning: drivers/net/ethernet/smsc/smsc911x.c:2145:30: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/smsc')
-rw-r--r--drivers/net/ethernet/smsc/smsc911x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index da5cc9a3b34c..48e2b99bec51 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -2115,7 +2115,7 @@ static int smsc911x_init(struct net_device *dev)
spin_lock_init(&pdata->dev_lock);
spin_lock_init(&pdata->mac_lock);
- if (pdata->ioaddr == 0) {
+ if (pdata->ioaddr == NULL) {
SMSC_WARN(pdata, probe, "pdata->ioaddr: 0x00000000");
return -ENODEV;
}