summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/smsc
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-03-18 21:01:38 +0000
committerDavid S. Miller <davem@davemloft.net>2013-03-19 10:20:27 -0400
commit6fed9592de7bd9c904ab476c3e264a18d1cf3598 (patch)
treece013ce231c7418fef05b8daf6fca1a390a96222 /drivers/net/ethernet/smsc
parent119c331f166ab1c55ac40c9840d180dac91f0cff (diff)
downloadop-kernel-dev-6fed9592de7bd9c904ab476c3e264a18d1cf3598.zip
op-kernel-dev-6fed9592de7bd9c904ab476c3e264a18d1cf3598.tar.gz
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 da5cc9a..48e2b99 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;
}
OpenPOWER on IntegriCloud