diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-01-13 11:10:19 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-13 11:10:19 -0500 |
commit | a5ed425cd30c0c2abac4039ae11b38520aa130c2 (patch) | |
tree | 407b7417679f395946e04b1107de5ecab64349df | |
parent | 43ecb9a33ba8c93ebbda81d48ca05f0d1bbf9056 (diff) |
V4L/DVB (3355): removed uneeded init on structs like static int foo=0
- Static vars are equal to zero by default. Removed unnecessary =0 from them,
saving some data space
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/dvb/bt8xx/bt878.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/av7110.c | 4 | ||||
-rw-r--r-- | drivers/media/video/bt832.c | 2 | ||||
-rw-r--r-- | drivers/media/video/btcx-risc.c | 2 | ||||
-rw-r--r-- | drivers/media/video/bttv-cards.c | 6 | ||||
-rw-r--r-- | drivers/media/video/bttv-driver.c | 27 | ||||
-rw-r--r-- | drivers/media/video/bttv-i2c.c | 6 | ||||
-rw-r--r-- | drivers/media/video/cx25840/cx25840-core.c | 2 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-alsa.c | 4 | ||||
-rw-r--r-- | drivers/media/video/msp3400-driver.c | 10 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-core.c | 2 |
11 files changed, 33 insertions, 34 deletions
diff --git a/drivers/media/dvb/bt8xx/bt878.c b/drivers/media/dvb/bt8xx/bt878.c index f29571450038..a04bb61f21f4 100644 --- a/drivers/media/dvb/bt8xx/bt878.c +++ b/drivers/media/dvb/bt8xx/bt878.c | |||
@@ -542,7 +542,7 @@ static struct pci_driver bt878_pci_driver = { | |||
542 | .remove = bt878_remove, | 542 | .remove = bt878_remove, |
543 | }; | 543 | }; |
544 | 544 | ||
545 | static int bt878_pci_driver_registered = 0; | 545 | static int bt878_pci_driver_registered; |
546 | 546 | ||
547 | /*******************************/ | 547 | /*******************************/ |
548 | /* Module management functions */ | 548 | /* Module management functions */ |
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index 327a8089193b..27494901975f 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c | |||
@@ -81,7 +81,7 @@ static int adac = DVB_ADAC_TI; | |||
81 | static int hw_sections; | 81 | static int hw_sections; |
82 | static int rgb_on; | 82 | static int rgb_on; |
83 | static int volume = 255; | 83 | static int volume = 255; |
84 | static int budgetpatch = 0; | 84 | static int budgetpatch; |
85 | 85 | ||
86 | module_param_named(debug, av7110_debug, int, 0644); | 86 | module_param_named(debug, av7110_debug, int, 0644); |
87 | MODULE_PARM_DESC(debug, "debug level (bitmask, default 0)"); | 87 | MODULE_PARM_DESC(debug, "debug level (bitmask, default 0)"); |
@@ -103,7 +103,7 @@ MODULE_PARM_DESC(budgetpatch, "use budget-patch hardware modification: default 0 | |||
103 | 103 | ||
104 | static void restart_feeds(struct av7110 *av7110); | 104 | static void restart_feeds(struct av7110 *av7110); |
105 | 105 | ||
106 | static int av7110_num = 0; | 106 | static int av7110_num; |
107 | 107 | ||
108 | #define FE_FUNC_OVERRIDE(fe_func, av7110_copy, av7110_func) \ | 108 | #define FE_FUNC_OVERRIDE(fe_func, av7110_copy, av7110_func) \ |
109 | {\ | 109 | {\ |
diff --git a/drivers/media/video/bt832.c b/drivers/media/video/bt832.c index 07c78f1f7a44..cc54b62f4601 100644 --- a/drivers/media/video/bt832.c +++ b/drivers/media/video/bt832.c | |||
@@ -43,7 +43,7 @@ static unsigned short normal_i2c[] = { I2C_BT832_ALT1>>1, I2C_BT832_ALT2>>1, | |||
43 | I2C_CLIENT_END }; | 43 | I2C_CLIENT_END }; |
44 | I2C_CLIENT_INSMOD; | 44 | I2C_CLIENT_INSMOD; |
45 | 45 | ||
46 | int debug = 0; /* debug output */ | 46 | int debug; /* debug output */ |
47 | module_param(debug, int, 0644); | 47 | module_param(debug, int, 0644); |
48 | 48 | ||
49 | /* ---------------------------------------------------------------------- */ | 49 | /* ---------------------------------------------------------------------- */ |
diff --git a/drivers/media/video/btcx-risc.c b/drivers/media/video/btcx-risc.c index a48de3c0e3f0..b4aca7249276 100644 --- a/drivers/media/video/btcx-risc.c +++ b/drivers/media/video/btcx-risc.c | |||
@@ -37,7 +37,7 @@ MODULE_DESCRIPTION("some code shared by bttv and cx88xx drivers"); | |||
37 | MODULE_AUTHOR("Gerd Knorr"); | 37 | MODULE_AUTHOR("Gerd Knorr"); |
38 | MODULE_LICENSE("GPL"); | 38 | MODULE_LICENSE("GPL"); |
39 | 39 | ||
40 | static unsigned int debug = 0; | 40 | static unsigned int debug; |
41 | module_param(debug, int, 0644); | 41 | module_param(debug, int, 0644); |
42 | MODULE_PARM_DESC(debug,"debug messages, default is 0 (no)"); | 42 | MODULE_PARM_DESC(debug,"debug messages, default is 0 (no)"); |
43 | 43 | ||
diff --git a/drivers/media/video/bttv-cards.c b/drivers/media/video/bttv-cards.c index 65323e78d5fd..9749d6ed6231 100644 --- a/drivers/media/video/bttv-cards.c +++ b/drivers/media/video/bttv-cards.c | |||
@@ -92,8 +92,8 @@ static void identify_by_eeprom(struct bttv *btv, | |||
92 | static int __devinit pvr_boot(struct bttv *btv); | 92 | static int __devinit pvr_boot(struct bttv *btv); |
93 | 93 | ||
94 | /* config variables */ | 94 | /* config variables */ |
95 | static unsigned int triton1=0; | 95 | static unsigned int triton1; |
96 | static unsigned int vsfx=0; | 96 | static unsigned int vsfx; |
97 | static unsigned int latency = UNSET; | 97 | static unsigned int latency = UNSET; |
98 | int no_overlay=-1; | 98 | int no_overlay=-1; |
99 | 99 | ||
@@ -106,7 +106,7 @@ static struct bttv *master[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = NULL }; | |||
106 | #ifdef MODULE | 106 | #ifdef MODULE |
107 | static unsigned int autoload = 1; | 107 | static unsigned int autoload = 1; |
108 | #else | 108 | #else |
109 | static unsigned int autoload = 0; | 109 | static unsigned int autoload; |
110 | #endif | 110 | #endif |
111 | static unsigned int gpiomask = UNSET; | 111 | static unsigned int gpiomask = UNSET; |
112 | static unsigned int audioall = UNSET; | 112 | static unsigned int audioall = UNSET; |
diff --git a/drivers/media/video/bttv-driver.c b/drivers/media/video/bttv-driver.c index 0e6970346788..1c6cfe954548 100644 --- a/drivers/media/video/bttv-driver.c +++ b/drivers/media/video/bttv-driver.c | |||
@@ -48,47 +48,46 @@ | |||
48 | unsigned int bttv_num; /* number of Bt848s in use */ | 48 | unsigned int bttv_num; /* number of Bt848s in use */ |
49 | struct bttv bttvs[BTTV_MAX]; | 49 | struct bttv bttvs[BTTV_MAX]; |
50 | 50 | ||
51 | unsigned int bttv_debug = 0; | 51 | unsigned int bttv_debug; |
52 | unsigned int bttv_verbose = 1; | 52 | unsigned int bttv_verbose = 1; |
53 | unsigned int bttv_gpio = 0; | 53 | unsigned int bttv_gpio; |
54 | 54 | ||
55 | /* config variables */ | 55 | /* config variables */ |
56 | #ifdef __BIG_ENDIAN | 56 | #ifdef __BIG_ENDIAN |
57 | static unsigned int bigendian=1; | 57 | static unsigned int bigendian=1; |
58 | #else | 58 | #else |
59 | static unsigned int bigendian=0; | 59 | static unsigned int bigendian; |
60 | #endif | 60 | #endif |
61 | static unsigned int radio[BTTV_MAX]; | 61 | static unsigned int radio[BTTV_MAX]; |
62 | static unsigned int irq_debug = 0; | 62 | static unsigned int irq_debug; |
63 | static unsigned int gbuffers = 8; | 63 | static unsigned int gbuffers = 8; |
64 | static unsigned int gbufsize = 0x208000; | 64 | static unsigned int gbufsize = 0x208000; |
65 | 65 | ||
66 | static int video_nr = -1; | 66 | static int video_nr = -1; |
67 | static int radio_nr = -1; | 67 | static int radio_nr = -1; |
68 | static int vbi_nr = -1; | 68 | static int vbi_nr = -1; |
69 | static int debug_latency = 0; | 69 | static int debug_latency; |
70 | 70 | ||
71 | static unsigned int fdsr = 0; | 71 | static unsigned int fdsr; |
72 | 72 | ||
73 | /* options */ | 73 | /* options */ |
74 | static unsigned int combfilter = 0; | 74 | static unsigned int combfilter; |
75 | static unsigned int lumafilter = 0; | 75 | static unsigned int lumafilter; |
76 | static unsigned int automute = 1; | 76 | static unsigned int automute = 1; |
77 | static unsigned int chroma_agc = 0; | 77 | static unsigned int chroma_agc; |
78 | static unsigned int adc_crush = 1; | 78 | static unsigned int adc_crush = 1; |
79 | static unsigned int whitecrush_upper = 0xCF; | 79 | static unsigned int whitecrush_upper = 0xCF; |
80 | static unsigned int whitecrush_lower = 0x7F; | 80 | static unsigned int whitecrush_lower = 0x7F; |
81 | static unsigned int vcr_hack = 0; | 81 | static unsigned int vcr_hack; |
82 | static unsigned int irq_iswitch = 0; | 82 | static unsigned int irq_iswitch; |
83 | static unsigned int uv_ratio = 50; | 83 | static unsigned int uv_ratio = 50; |
84 | static unsigned int full_luma_range = 0; | 84 | static unsigned int full_luma_range; |
85 | static unsigned int coring = 0; | 85 | static unsigned int coring; |
86 | extern int no_overlay; | 86 | extern int no_overlay; |
87 | 87 | ||
88 | /* API features (turn on/off stuff for testing) */ | 88 | /* API features (turn on/off stuff for testing) */ |
89 | static unsigned int v4l2 = 1; | 89 | static unsigned int v4l2 = 1; |
90 | 90 | ||
91 | |||
92 | /* insmod args */ | 91 | /* insmod args */ |
93 | module_param(bttv_verbose, int, 0644); | 92 | module_param(bttv_verbose, int, 0644); |
94 | module_param(bttv_gpio, int, 0644); | 93 | module_param(bttv_gpio, int, 0644); |
diff --git a/drivers/media/video/bttv-i2c.c b/drivers/media/video/bttv-i2c.c index 748d630c7fe4..614c12018557 100644 --- a/drivers/media/video/bttv-i2c.c +++ b/drivers/media/video/bttv-i2c.c | |||
@@ -41,9 +41,9 @@ static struct i2c_client bttv_i2c_client_template; | |||
41 | 41 | ||
42 | static int attach_inform(struct i2c_client *client); | 42 | static int attach_inform(struct i2c_client *client); |
43 | 43 | ||
44 | static int i2c_debug = 0; | 44 | static int i2c_debug; |
45 | static int i2c_hw = 0; | 45 | static int i2c_hw; |
46 | static int i2c_scan = 0; | 46 | static int i2c_scan; |
47 | module_param(i2c_debug, int, 0644); | 47 | module_param(i2c_debug, int, 0644); |
48 | module_param(i2c_hw, int, 0444); | 48 | module_param(i2c_hw, int, 0444); |
49 | module_param(i2c_scan, int, 0444); | 49 | module_param(i2c_scan, int, 0444); |
diff --git a/drivers/media/video/cx25840/cx25840-core.c b/drivers/media/video/cx25840/cx25840-core.c index 1d75a42629d1..0da744c1d23e 100644 --- a/drivers/media/video/cx25840/cx25840-core.c +++ b/drivers/media/video/cx25840/cx25840-core.c | |||
@@ -43,7 +43,7 @@ MODULE_LICENSE("GPL"); | |||
43 | static unsigned short normal_i2c[] = { 0x88 >> 1, I2C_CLIENT_END }; | 43 | static unsigned short normal_i2c[] = { 0x88 >> 1, I2C_CLIENT_END }; |
44 | 44 | ||
45 | 45 | ||
46 | int cx25840_debug = 0; | 46 | int cx25840_debug; |
47 | 47 | ||
48 | module_param_named(debug,cx25840_debug, int, 0644); | 48 | module_param_named(debug,cx25840_debug, int, 0644); |
49 | 49 | ||
diff --git a/drivers/media/video/cx88/cx88-alsa.c b/drivers/media/video/cx88/cx88-alsa.c index 7695b521eb35..fd8bc718f0e3 100644 --- a/drivers/media/video/cx88/cx88-alsa.c +++ b/drivers/media/video/cx88/cx88-alsa.c | |||
@@ -116,7 +116,7 @@ MODULE_LICENSE("GPL"); | |||
116 | MODULE_SUPPORTED_DEVICE("{{Conexant,23881}," | 116 | MODULE_SUPPORTED_DEVICE("{{Conexant,23881}," |
117 | "{{Conexant,23882}," | 117 | "{{Conexant,23882}," |
118 | "{{Conexant,23883}"); | 118 | "{{Conexant,23883}"); |
119 | static unsigned int debug = 0; | 119 | static unsigned int debug; |
120 | module_param(debug,int,0644); | 120 | module_param(debug,int,0644); |
121 | MODULE_PARM_DESC(debug,"enable debug messages"); | 121 | MODULE_PARM_DESC(debug,"enable debug messages"); |
122 | 122 | ||
@@ -653,7 +653,7 @@ static void snd_cx88_dev_free(snd_card_t * card) | |||
653 | * Alsa Constructor - Component probe | 653 | * Alsa Constructor - Component probe |
654 | */ | 654 | */ |
655 | 655 | ||
656 | static int devno=0; | 656 | static int devno; |
657 | static int __devinit snd_cx88_create(snd_card_t *card, struct pci_dev *pci, | 657 | static int __devinit snd_cx88_create(snd_card_t *card, struct pci_dev *pci, |
658 | snd_cx88_card_t **rchip) | 658 | snd_cx88_card_t **rchip) |
659 | { | 659 | { |
diff --git a/drivers/media/video/msp3400-driver.c b/drivers/media/video/msp3400-driver.c index 9b05a0ab776d..09ff25b554b6 100644 --- a/drivers/media/video/msp3400-driver.c +++ b/drivers/media/video/msp3400-driver.c | |||
@@ -66,12 +66,12 @@ MODULE_LICENSE("GPL"); | |||
66 | 66 | ||
67 | /* module parameters */ | 67 | /* module parameters */ |
68 | static int opmode = OPMODE_AUTO; | 68 | static int opmode = OPMODE_AUTO; |
69 | int msp_debug = 0; /* msp_debug output */ | 69 | int msp_debug; /* msp_debug output */ |
70 | int msp_once = 0; /* no continous stereo monitoring */ | 70 | int msp_once; /* no continous stereo monitoring */ |
71 | int msp_amsound = 0; /* hard-wire AM sound at 6.5 Hz (france), | 71 | int msp_amsound; /* hard-wire AM sound at 6.5 Hz (france), |
72 | the autoscan seems work well only with FM... */ | 72 | the autoscan seems work well only with FM... */ |
73 | int msp_standard = 1; /* Override auto detect of audio msp_standard, if needed. */ | 73 | int msp_standard = 1; /* Override auto detect of audio msp_standard, if needed. */ |
74 | int msp_dolby = 0; | 74 | int msp_dolby; |
75 | 75 | ||
76 | int msp_stereo_thresh = 0x190; /* a2 threshold for stereo/bilingual | 76 | int msp_stereo_thresh = 0x190; /* a2 threshold for stereo/bilingual |
77 | (msp34xxg only) 0x00a0-0x03c0 */ | 77 | (msp34xxg only) 0x00a0-0x03c0 */ |
diff --git a/drivers/media/video/saa7134/saa7134-core.c b/drivers/media/video/saa7134/saa7134-core.c index 3983a6524cac..3dd42efe3699 100644 --- a/drivers/media/video/saa7134/saa7134-core.c +++ b/drivers/media/video/saa7134/saa7134-core.c | |||
@@ -140,7 +140,7 @@ static int pending_call(struct notifier_block *self, unsigned long state, | |||
140 | return NOTIFY_DONE; | 140 | return NOTIFY_DONE; |
141 | } | 141 | } |
142 | 142 | ||
143 | static int pending_registered=0; | 143 | static int pending_registered; |
144 | static struct notifier_block pending_notifier = { | 144 | static struct notifier_block pending_notifier = { |
145 | .notifier_call = pending_call, | 145 | .notifier_call = pending_call, |
146 | }; | 146 | }; |