Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 May 2011 20:31:05 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r221913 - head/sys/dev/mii
Message-ID:  <201105142031.p4EKV5el014531@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105142031.p4EKV5el014531>