Skip to contentSkip to conversation

drivers/net/yellowfin.c zero initialization cleanup (2.4.0p3)

PATCH New Rasmus Andersen 1 participant 1 message Jan 14, 2001 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/net/yellowfin.c zero initialization cleanup (2.4.0p3)

Hi.

The following trivial patch cleans up some unneeded zero initializations in drivers/net/yellowfix.c. Applies cleanly against 2.4.0p3 and with a bit of fuzz against ac9 too.

drivers/net/yellowfin.c +4 -4
@@ -24,10 +24,10 @@
 
 static int debug = 1;
 static int max_interrupt_work = 20;
-static int mtu = 0;
+static int mtu;
 #ifdef YF_PROTOTYPE			/* Support for prototype hardware errata. */
 /* System-wide count of bogus-rx frames. */
-static int bogus_rx = 0;
+static int bogus_rx;
 static int dma_ctrl = 0x004A0263; 			/* Constrained by errata */
 static int fifo_cfg = 0x0020;				/* Bypass external Tx FIFO. */
 #elif YF_NEW					/* A future perfect board :->.  */
@@ -40,7 +40,7 @@
 
 /* Set the copy breakpoint for the copy-only-tiny-frames scheme.
    Setting to > 1514 effectively disables this feature. */
-static int rx_copybreak = 0;
+static int rx_copybreak;
 
 /* Used to pass the media type, etc.
    No media types are currently defined.  These exist for driver
@@ -51,7 +51,7 @@
 static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
 
 /* Do ugly workaround for GX server chipset errata. */
-static int gx_fix = 0;
+static int gx_fix;
 
 /* Operational parameters that are set at compile time. */
 
Signature · 12 lines
Regards,
        Rasmus([email protected])

Question: If you could live forever, would you and why?  
Answer: I would not live forever, because we should not live forever,
because if we were supposed to live forever, then we would live forever,
but we cannot live forever, which is why I would not live forever.  
-Miss Alabama in the 1994 Miss Universe contest
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/