From: Andrzej Krzysztofowicz <ankry@green.mif.pg.gda.pl>
To: alan@lxorguk.ukuu.org.uk (Alan Cox), jt@hpl.hp.com, tori@unhappy.mine.nu
Cc: linux-kernel@vger.kernel.org (kernel list)
Subject: [PATCH] net #9
Date: Wed, 30 May 2001 02:48:24 +0200 (CEST) [thread overview]
Message-ID: <200105300048.CAA04583@green.mif.pg.gda.pl> (raw)
The following patch removes some zero initializers from statics
Andrzej
**************************** PATCH 9 *****************************
diff -uNr linux-2.4.5-ac4/drivers/net/dmfe.c linux/drivers/net/dmfe.c
--- linux-2.4.5-ac4/drivers/net/dmfe.c Wed May 30 01:08:54 2001
+++ linux/drivers/net/dmfe.c Wed May 30 01:16:04 2001
@@ -261,20 +261,20 @@
static char version[] __devinitdata =
KERN_INFO "Davicom DM9xxx net driver, version " DMFE_VERSION "\n";
-static int dmfe_debug = 0;
+static int dmfe_debug;
static unsigned char dmfe_media_mode = DMFE_AUTO;
-static u32 dmfe_cr6_user_set = 0;
+static u32 dmfe_cr6_user_set;
/* For module input parameter */
-static int debug = 0;
-static u32 cr6set = 0;
+static int debug;
+static u32 cr6set;
static unsigned char mode = 8;
static u8 chkmode = 1;
-static u8 HPNA_mode = 0; /* Default: Low Power/High Speed */
-static u8 HPNA_rx_cmd = 0; /* Default: Disable Rx remote command */
-static u8 HPNA_tx_cmd = 0; /* Default: Don't issue remote command */
-static u8 HPNA_NoiseFloor = 0; /* Default: HPNA NoiseFloor */
-static u8 SF_mode = 0; /* Special Function: 1:VLAN, 2:RX Flow Control
+static u8 HPNA_mode; /* Default: Low Power/High Speed */
+static u8 HPNA_rx_cmd; /* Default: Disable Rx remote command */
+static u8 HPNA_tx_cmd; /* Default: Don't issue remote command */
+static u8 HPNA_NoiseFloor; /* Default: HPNA NoiseFloor */
+static u8 SF_mode; /* Special Function: 1:VLAN, 2:RX Flow Control
4: TX pause packet */
unsigned long CrcTable[256] = {
diff -uNr linux-2.4.5-ac4/drivers/net/wavelan.p.h linux/drivers/net/wavelan.p.h
--- linux-2.4.5-ac4/drivers/net/wavelan.p.h Wed May 30 01:08:56 2001
+++ linux/drivers/net/wavelan.p.h Wed May 30 01:16:05 2001
@@ -699,9 +699,9 @@
#ifdef MODULE
/* Parameters set by insmod */
-static int io[4] = { 0, 0, 0, 0 };
-static int irq[4] = { 0, 0, 0, 0 };
-static char name[4][IFNAMSIZ] = { "", "", "", "" };
+static int io[4];
+static int irq[4];
+static char name[4][IFNAMSIZ];
MODULE_PARM(io, "1-4i");
MODULE_PARM(irq, "1-4i");
MODULE_PARM(name, "1-4c" __MODULE_STRING(IFNAMSIZ));
--
=======================================================================
Andrzej M. Krzysztofowicz ankry@mif.pg.gda.pl
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Technical University of Gdansk
next reply other threads:[~2001-05-30 0:49 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-30 0:48 Andrzej Krzysztofowicz [this message]
2001-05-30 1:04 ` [PATCH] net #9 Jean Tourrilhes
2001-05-30 1:13 ` Jeff Garzik
2001-05-30 1:25 ` Jean Tourrilhes
2001-05-30 1:47 ` Jeff Garzik
2001-05-30 2:01 ` Jean Tourrilhes
2001-05-30 2:13 ` Jeff Garzik
2001-05-30 2:25 ` Jean Tourrilhes
2001-05-30 16:35 ` Hermann Himmelbauer
2001-05-30 2:13 ` Jean Tourrilhes
2001-05-30 2:17 ` Jeff Garzik
2001-05-30 9:33 ` Henning P. Schmiedehausen
2001-05-30 22:28 ` Pavel Machek
2001-05-30 9:32 ` Henning P. Schmiedehausen
2001-05-30 10:28 ` Andrzej Krzysztofowicz
2001-05-30 10:30 ` Keith Owens
2001-05-30 10:43 ` Henning P. Schmiedehausen
2001-05-30 10:30 ` Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200105300048.CAA04583@green.mif.pg.gda.pl \
--to=ankry@green.mif.pg.gda.pl \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jt@hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tori@unhappy.mine.nu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox