Selaa lähdekoodia

[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.
tags/v0.9.7
Michael Brown 16 vuotta sitten
vanhempi
commit
b4a95a8974
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1
    0
      src/net/ethernet.c

+ 1
- 0
src/net/ethernet.c Näytä tiedosto

127
 		ll_addr_bytes[3] = net_addr_bytes[1] & 0x7f;
127
 		ll_addr_bytes[3] = net_addr_bytes[1] & 0x7f;
128
 		ll_addr_bytes[4] = net_addr_bytes[2];
128
 		ll_addr_bytes[4] = net_addr_bytes[2];
129
 		ll_addr_bytes[5] = net_addr_bytes[3];
129
 		ll_addr_bytes[5] = net_addr_bytes[3];
130
+		return 0;
130
 	default:
131
 	default:
131
 		return -ENOTSUP;
132
 		return -ENOTSUP;
132
 	}
133
 	}

Loading…
Peruuta
Tallenna