From: Michael Brown Date: Wed, 21 Jan 2009 03:37:36 +0000 (+0000) Subject: [ethernet] Fix eth_mc_hash() return status X-Git-Tag: v0.9.7~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4a95a8974dd073b580d6a23383fa94b3d59d989;p=thirdparty%2Fipxe.git [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. --- diff --git a/src/net/ethernet.c b/src/net/ethernet.c index 3b289705c..b16135a9a 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; }