svn commit: r221913 - head/sys/dev/mii

Marius Strobl marius at FreeBSD.org
Sat May 14 20:31:05 UTC 2011


Author: marius
Date: Sat May 14 20:31:04 2011
New Revision: 221913
URL: http://svn.freebsd.org/changeset/base/221913

Log:
  - There's no need for nibbletab to be static, it's const however.
  - Fix whitespace.

Modified:
  head/sys/dev/mii/mii.c

Modified: head/sys/dev/mii/mii.c
==============================================================================
--- head/sys/dev/mii/mii.c	Sat May 14 19:36:12 2011	(r221912)
+++ head/sys/dev/mii/mii.c	Sat May 14 20:31:04 2011	(r221913)
@@ -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));
 }


More information about the svn-src-head mailing list