diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-18 21:01:38 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-19 10:20:27 -0400 |
commit | 6fed9592de7bd9c904ab476c3e264a18d1cf3598 (patch) | |
tree | ce013ce231c7418fef05b8daf6fca1a390a96222 /drivers | |
parent | 119c331f166ab1c55ac40c9840d180dac91f0cff (diff) |
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')
-rw-r--r-- | drivers/net/ethernet/smsc/smsc911x.c | 2 |
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; } |