Commit 273b1f4a authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] janitor: ite8172: don't init statics to 0

From: Eugene Teo <eugene.teo@eugeneteo.net>

Removed initialisation to zero on static variables.
parent bce27b43
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
* Revision history * Revision history
* 02.08.2001 Initial release * 02.08.2001 Initial release
* 06.22.2001 Added I2S support * 06.22.2001 Added I2S support
* 07.30.2003 Removed initialisation to zero for static variables
* (spdif[NR_DEVICE], i2s_fmt[NR_DEVICE], and devindex)
*/ */
#include <linux/version.h> #include <linux/version.h>
#include <linux/module.h> #include <linux/module.h>
...@@ -1952,10 +1954,10 @@ static int proc_it8172_dump (char *buf, char **start, off_t fpos, ...@@ -1952,10 +1954,10 @@ static int proc_it8172_dump (char *buf, char **start, off_t fpos,
/* maximum number of devices; only used for command line params */ /* maximum number of devices; only used for command line params */
#define NR_DEVICE 5 #define NR_DEVICE 5
static int spdif[NR_DEVICE] = { 0, }; static int spdif[NR_DEVICE];
static int i2s_fmt[NR_DEVICE] = { 0, }; static int i2s_fmt[NR_DEVICE];
static unsigned int devindex = 0; static unsigned int devindex;
MODULE_PARM(spdif, "1-" __MODULE_STRING(NR_DEVICE) "i"); MODULE_PARM(spdif, "1-" __MODULE_STRING(NR_DEVICE) "i");
MODULE_PARM_DESC(spdif, "if 1 the S/PDIF digital output is enabled"); MODULE_PARM_DESC(spdif, "if 1 the S/PDIF digital output is enabled");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment