diff options
author | antoine <antoine@FreeBSD.org> | 2008-05-10 18:33:38 +0000 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2008-05-10 18:33:38 +0000 |
commit | 5a1745ad485c042c27ea1fde6589433706cf7333 (patch) | |
tree | 97fc1ca826ff219070ec31d24d33bcb70d9de062 /sys/net | |
parent | 816e721312fb4cb2c38886f5f52b0d24668ef539 (diff) | |
download | FreeBSD-src-5a1745ad485c042c27ea1fde6589433706cf7333.zip FreeBSD-src-5a1745ad485c042c27ea1fde6589433706cf7333.tar.gz |
Add missing braces in #if 0ed code.
Approved by: rwatson (mentor)
MFC after: 1 month
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_ethersubr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 1f0eb04..c4edca6 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -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); |