[2.6 patch] drivers/net/via-rhine.c: make a variable static const

From: Adrian Bunk
Date: Mon Feb 21 2005 - 09:59:18 EST


On Sat, Feb 19, 2005 at 03:47:16AM -0500, Jeff Garzik wrote:
> Adrian Bunk wrote:
>...
> >-int mmio_verify_registers[] = {
> >+static int mmio_verify_registers[] = {
> > RxConfig, TxConfig, IntrEnable, ConfigA, ConfigB, ConfigC, ConfigD,
> > 0
>
> static const


Updated patch below.


<-- snip -->


This patch makes a needlessly global variable static const.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-2.6.11-rc3-mm2-full/drivers/net/via-rhine.c.old 2005-02-16 18:56:59.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/net/via-rhine.c 2005-02-16 18:57:05.000000000 +0100
@@ -390,7 +390,7 @@

#ifdef USE_MMIO
/* Registers we check that mmio and reg are the same. */
-int mmio_verify_registers[] = {
+static const int mmio_verify_registers[] = {
RxConfig, TxConfig, IntrEnable, ConfigA, ConfigB, ConfigC, ConfigD,
0
};



-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html