summaryrefslogtreecommitdiffstats
path: root/src/net/vlan.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/vlan.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/vlan.c')
-rw-r--r--src/net/vlan.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/net/vlan.c b/src/net/vlan.c
index 1a2a0862..b4ddde42 100644
--- a/src/net/vlan.c
+++ b/src/net/vlan.c
@@ -440,16 +440,6 @@ int vlan_destroy ( struct net_device *netdev ) {
}
/**
- * Do nothing
- *
- * @v trunk Trunk network device
- * @ret rc Return status code
- */
-static int vlan_probe ( struct net_device *trunk __unused ) {
- return 0;
-}
-
-/**
* Handle trunk network device link state change
*
* @v trunk Trunk network device
@@ -505,7 +495,6 @@ static void vlan_remove ( struct net_device *trunk ) {
/** VLAN driver */
struct net_driver vlan_driver __net_driver = {
.name = "VLAN",
- .probe = vlan_probe,
.notify = vlan_notify,
.remove = vlan_remove,
};