From: Sachin Kamat Date: Mon, 18 Mar 2013 21:01:38 +0000 (+0000) Subject: net/smsc911x: Use NULL instead of integer for pointer X-Git-Tag: MMI-PSA29.97-13-9~14469^2~426 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fed9592de7bd9c904ab476c3e264a18d1cf3598;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: David S. Miller --- 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; }