aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mii
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2011-05-14 20:31:04 +0000
committerMarius Strobl <marius@FreeBSD.org>2011-05-14 20:31:04 +0000
commit087a4650e2f4affdf81f1a74c1d5a171283b925e (patch)
treea06193c928b08e4dd7014a06da1189f83a8c01e3 /sys/dev/mii
parentaf49c942206177a6a9e4158ed28cce5ff83a900e (diff)
Notes
Diffstat (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/mii.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c
index fbdd0eac6892..224f85df085e 100644
--- a/sys/dev/mii/mii.c
+++ b/sys/dev/mii/mii.c
@@ -552,7 +552,7 @@ mii_down(struct mii_data *mii)
static unsigned char
mii_bitreverse(unsigned char x)
{
- static unsigned char nibbletab[16] = {
+ unsigned const char const nibbletab[16] = {
0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15
};
@@ -567,6 +567,6 @@ mii_oui(u_int id1, u_int id2)
h = (id1 << 6) | (id2 >> 10);
return ((mii_bitreverse(h >> 16) << 16) |
- (mii_bitreverse((h >> 8) & 0xff) << 8) |
- mii_bitreverse(h & 0xff));
+ (mii_bitreverse((h >> 8) & 0xff) << 8) |
+ mii_bitreverse(h & 0xff));
}