projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99da1a8
)
3c523: fix warning in drivers/net/3c523.c
author
Ingo Molnar
<mingo@elte.hu>
Wed, 26 Nov 2008 01:02:20 +0000
(17:02 -0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 26 Nov 2008 01:02:20 +0000
(17:02 -0800)
fix warning:
drivers/net/3c523.c:582: warning: ‘cleanup_card’ defined but not used
No code changed:
md5:
ebe4a1b27d3f21b0b12a78c58463b0d7
3c523.o.before.asm
ebe4a1b27d3f21b0b12a78c58463b0d7
3c523.o.after.asm
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/3c523.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/3c523.c
b/drivers/net/3c523.c
index 59ea2910bcac01f5108d1a0737b567e671339e54..d9c9481a59a57c888e9a7e0a92d20cf5067ff3e3 100644
(file)
--- a/
drivers/net/3c523.c
+++ b/
drivers/net/3c523.c
@@
-576,14
+576,14
@@
err_out:
return retval;
}
+#ifdef MODULE
static void cleanup_card(struct net_device *dev)
{
mca_set_adapter_procfn(((struct priv *)netdev_priv(dev))->slot,
NULL, NULL);
release_region(dev->base_addr, ELMC_IO_EXTENT);
}
-
-#ifndef MODULE
+#else
struct net_device * __init elmc_probe(int unit)
{
struct net_device *dev = alloc_etherdev(sizeof(struct priv));