summaryrefslogtreecommitdiffstats
path: root/src/net/ipv6.c
diff options
context:
space:
mode:
authorMichael Brown2013-10-31 15:09:43 +0100
committerMichael Brown2013-11-01 03:26:44 +0100
commit5c11ff630440b5ef6d1bfadab06e265f61312369 (patch)
treef0014ce8335637cd92f997c4bb301f9da723edb6 /src/net/ipv6.c
parent[parseopt] Add parse_timeout() (diff)
downloadipxe-5c11ff630440b5ef6d1bfadab06e265f61312369.tar.gz
ipxe-5c11ff630440b5ef6d1bfadab06e265f61312369.tar.xz
ipxe-5c11ff630440b5ef6d1bfadab06e265f61312369.zip
[netdevice] Make all net_driver methods optional
Most network upper-layer drivers do not implement all three methods (probe, notify, and remove). Save code by making all methods optional. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/ipv6.c')
-rw-r--r--src/net/ipv6.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/net/ipv6.c b/src/net/ipv6.c
index cbd4e3e5..8279f058 100644
--- a/src/net/ipv6.c
+++ b/src/net/ipv6.c
@@ -944,16 +944,6 @@ static int ipv6_probe ( struct net_device *netdev ) {
}
/**
- * Handle IPv6 network device or link state change
- *
- * @v netdev Network device
- */
-static void ipv6_notify ( struct net_device *netdev __unused ) {
-
- /* Nothing to do */
-}
-
-/**
* Destroy IPv6 network device
*
* @v netdev Network device
@@ -973,7 +963,6 @@ static void ipv6_remove ( struct net_device *netdev ) {
struct net_driver ipv6_driver __net_driver = {
.name = "IPv6",
.probe = ipv6_probe,
- .notify = ipv6_notify,
.remove = ipv6_remove,
};