Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
Michael Brown committed Jan 21, 2009
1 parent 7be5fa8 commit b4a95a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net/ethernet.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit b4a95a8

Please sign in to comment.