projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
119c331
)
net/smsc911x: Use NULL instead of integer for pointer
author
Sachin Kamat
<sachin.kamat@linaro.org>
Mon, 18 Mar 2013 21:01:38 +0000
(21:01 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 19 Mar 2013 14:20:27 +0000
(10:20 -0400)
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>
drivers/net/ethernet/smsc/smsc911x.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/smsc/smsc911x.c
b/drivers/net/ethernet/smsc/smsc911x.c
index
da5cc9a
..
48e2b99
100644
(file)
--- 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;
}