Add missing braces in #if 0ed code.
Approved by: rwatson (mentor) MFC after: 1 month
This commit is contained in:
parent
05b0fdac8c
commit
933dad75e3
@ -952,11 +952,12 @@ ether_crc32_le(const uint8_t *buf, size_t len)
|
||||
crc = 0xffffffff; /* initial value */
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
for (data = *buf++, bit = 0; bit < 8; bit++, data >>= 1)
|
||||
for (data = *buf++, bit = 0; bit < 8; bit++, data >>= 1) {
|
||||
carry = (crc ^ data) & 1;
|
||||
crc >>= 1;
|
||||
if (carry)
|
||||
crc = (crc ^ ETHER_CRC_POLY_LE);
|
||||
}
|
||||
}
|
||||
|
||||
return (crc);
|
||||
|
Loading…
Reference in New Issue
Block a user