diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-10-31 14:09:43 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-11-01 02:26:44 +0000 |
commit | 5c11ff630440b5ef6d1bfadab06e265f61312369 (patch) | |
tree | f0014ce8335637cd92f997c4bb301f9da723edb6 /src/net/neighbour.c | |
parent | 5e1fa5cd4090f229a40903f13abf328e86271717 (diff) | |
download | ipxe-5c11ff630440b5ef6d1bfadab06e265f61312369.tar.gz |
[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/neighbour.c')
-rw-r--r-- | src/net/neighbour.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/net/neighbour.c b/src/net/neighbour.c index c175665a..e3026ce4 100644 --- a/src/net/neighbour.c +++ b/src/net/neighbour.c @@ -376,16 +376,6 @@ int neighbour_define ( struct net_device *netdev, } /** - * Update neighbour cache on network device creation - * - * @v netdev Network device - */ -static int neighbour_probe ( struct net_device *netdev __unused ) { - /* Nothing to do */ - return 0; -} - -/** * Update neighbour cache on network device state change or removal * * @v netdev Network device @@ -404,7 +394,6 @@ static void neighbour_flush ( struct net_device *netdev ) { /** Neighbour driver (for net device notifications) */ struct net_driver neighbour_net_driver __net_driver = { .name = "Neighbour", - .probe = neighbour_probe, .notify = neighbour_flush, .remove = neighbour_flush, }; |