summaryrefslogtreecommitdiffstats
path: root/src/net/ethernet.c
diff options
context:
space:
mode:
authorMichael Brown2009-01-21 04:37:36 +0100
committerMichael Brown2009-01-21 04:38:25 +0100
commitb4a95a8974dd073b580d6a23383fa94b3d59d989 (patch)
tree24813a100343de07ea6f8f8a7e05aa407a3fdaeb /src/net/ethernet.c
parent[dhcp] Centralise DHCP successful state transitions (diff)
downloadipxe-b4a95a8974dd073b580d6a23383fa94b3d59d989.tar.gz
ipxe-b4a95a8974dd073b580d6a23383fa94b3d59d989.tar.xz
ipxe-b4a95a8974dd073b580d6a23383fa94b3d59d989.zip
[ethernet] Fix eth_mc_hash() return status
eth_mc_hash() was missing a return within a switch statement, and so always falling through to the default case and returning failure.
Diffstat (limited to 'src/net/ethernet.c')
-rw-r--r--src/net/ethernet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/ethernet.c b/src/net/ethernet.c
index 3b289705..b16135a9 100644
--- a/src/net/ethernet.c
+++ b/src/net/ethernet.c
@@ -127,6 +127,7 @@ static int eth_mc_hash ( unsigned int af, const void *net_addr,
ll_addr_bytes[3] = net_addr_bytes[1] & 0x7f;
ll_addr_bytes[4] = net_addr_bytes[2];
ll_addr_bytes[5] = net_addr_bytes[3];
+ return 0;
default:
return -ENOTSUP;
}