Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mauro Carvalho Chehab and committed by
Mauro Carvalho Chehab
a5ed425c 43ecb9a3

+33 -34
+1 -1
drivers/media/dvb/bt8xx/bt878.c
··· 542 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 548 /* Module management functions */
+2 -2
drivers/media/dvb/ttpci/av7110.c
··· 81 81 static int hw_sections; 82 82 static int rgb_on; 83 83 static int volume = 255; 84 - static int budgetpatch = 0; 84 + static int budgetpatch; 85 85 86 86 module_param_named(debug, av7110_debug, int, 0644); 87 87 MODULE_PARM_DESC(debug, "debug level (bitmask, default 0)"); ··· 103 103 104 104 static void restart_feeds(struct av7110 *av7110); 105 105 106 - static int av7110_num = 0; 106 + static int av7110_num; 107 107 108 108 #define FE_FUNC_OVERRIDE(fe_func, av7110_copy, av7110_func) \ 109 109 {\
+1 -1
drivers/media/video/bt832.c
··· 43 43 I2C_CLIENT_END }; 44 44 I2C_CLIENT_INSMOD; 45 45 46 - int debug = 0; /* debug output */ 46 + int debug; /* debug output */ 47 47 module_param(debug, int, 0644); 48 48 49 49 /* ---------------------------------------------------------------------- */
+1 -1
drivers/media/video/btcx-risc.c
··· 37 37 MODULE_AUTHOR("Gerd Knorr"); 38 38 MODULE_LICENSE("GPL"); 39 39 40 - static unsigned int debug = 0; 40 + static unsigned int debug; 41 41 module_param(debug, int, 0644); 42 42 MODULE_PARM_DESC(debug,"debug messages, default is 0 (no)"); 43 43
+3 -3
drivers/media/video/bttv-cards.c
··· 92 92 static int __devinit pvr_boot(struct bttv *btv); 93 93 94 94 /* config variables */ 95 - static unsigned int triton1=0; 96 - static unsigned int vsfx=0; 95 + static unsigned int triton1; 96 + static unsigned int vsfx; 97 97 static unsigned int latency = UNSET; 98 98 int no_overlay=-1; 99 99 ··· 106 106 #ifdef MODULE 107 107 static unsigned int autoload = 1; 108 108 #else 109 - static unsigned int autoload = 0; 109 + static unsigned int autoload; 110 110 #endif 111 111 static unsigned int gpiomask = UNSET; 112 112 static unsigned int audioall = UNSET;
+13 -14
drivers/media/video/bttv-driver.c
··· 48 48 unsigned int bttv_num; /* number of Bt848s in use */ 49 49 struct bttv bttvs[BTTV_MAX]; 50 50 51 - unsigned int bttv_debug = 0; 51 + unsigned int bttv_debug; 52 52 unsigned int bttv_verbose = 1; 53 - unsigned int bttv_gpio = 0; 53 + unsigned int bttv_gpio; 54 54 55 55 /* config variables */ 56 56 #ifdef __BIG_ENDIAN 57 57 static unsigned int bigendian=1; 58 58 #else 59 - static unsigned int bigendian=0; 59 + static unsigned int bigendian; 60 60 #endif 61 61 static unsigned int radio[BTTV_MAX]; 62 - static unsigned int irq_debug = 0; 62 + static unsigned int irq_debug; 63 63 static unsigned int gbuffers = 8; 64 64 static unsigned int gbufsize = 0x208000; 65 65 66 66 static int video_nr = -1; 67 67 static int radio_nr = -1; 68 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 73 /* options */ 74 - static unsigned int combfilter = 0; 75 - static unsigned int lumafilter = 0; 74 + static unsigned int combfilter; 75 + static unsigned int lumafilter; 76 76 static unsigned int automute = 1; 77 - static unsigned int chroma_agc = 0; 77 + static unsigned int chroma_agc; 78 78 static unsigned int adc_crush = 1; 79 79 static unsigned int whitecrush_upper = 0xCF; 80 80 static unsigned int whitecrush_lower = 0x7F; 81 - static unsigned int vcr_hack = 0; 82 - static unsigned int irq_iswitch = 0; 81 + static unsigned int vcr_hack; 82 + static unsigned int irq_iswitch; 83 83 static unsigned int uv_ratio = 50; 84 - static unsigned int full_luma_range = 0; 85 - static unsigned int coring = 0; 84 + static unsigned int full_luma_range; 85 + static unsigned int coring; 86 86 extern int no_overlay; 87 87 88 88 /* API features (turn on/off stuff for testing) */ 89 89 static unsigned int v4l2 = 1; 90 - 91 90 92 91 /* insmod args */ 93 92 module_param(bttv_verbose, int, 0644);
+3 -3
drivers/media/video/bttv-i2c.c
··· 41 41 42 42 static int attach_inform(struct i2c_client *client); 43 43 44 - static int i2c_debug = 0; 45 - static int i2c_hw = 0; 46 - static int i2c_scan = 0; 44 + static int i2c_debug; 45 + static int i2c_hw; 46 + static int i2c_scan; 47 47 module_param(i2c_debug, int, 0644); 48 48 module_param(i2c_hw, int, 0444); 49 49 module_param(i2c_scan, int, 0444);
+1 -1
drivers/media/video/cx25840/cx25840-core.c
··· 43 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 48 module_param_named(debug,cx25840_debug, int, 0644); 49 49
+2 -2
drivers/media/video/cx88/cx88-alsa.c
··· 116 116 MODULE_SUPPORTED_DEVICE("{{Conexant,23881}," 117 117 "{{Conexant,23882}," 118 118 "{{Conexant,23883}"); 119 - static unsigned int debug = 0; 119 + static unsigned int debug; 120 120 module_param(debug,int,0644); 121 121 MODULE_PARM_DESC(debug,"enable debug messages"); 122 122 ··· 653 653 * Alsa Constructor - Component probe 654 654 */ 655 655 656 - static int devno=0; 656 + static int devno; 657 657 static int __devinit snd_cx88_create(snd_card_t *card, struct pci_dev *pci, 658 658 snd_cx88_card_t **rchip) 659 659 {
+5 -5
drivers/media/video/msp3400-driver.c
··· 66 66 67 67 /* module parameters */ 68 68 static int opmode = OPMODE_AUTO; 69 - int msp_debug = 0; /* msp_debug output */ 70 - int msp_once = 0; /* no continous stereo monitoring */ 71 - int msp_amsound = 0; /* hard-wire AM sound at 6.5 Hz (france), 72 - the autoscan seems work well only with FM... */ 69 + int msp_debug; /* msp_debug output */ 70 + int msp_once; /* no continous stereo monitoring */ 71 + int msp_amsound; /* hard-wire AM sound at 6.5 Hz (france), 72 + the autoscan seems work well only with FM... */ 73 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 76 int msp_stereo_thresh = 0x190; /* a2 threshold for stereo/bilingual 77 77 (msp34xxg only) 0x00a0-0x03c0 */
+1 -1
drivers/media/video/saa7134/saa7134-core.c
··· 140 140 return NOTIFY_DONE; 141 141 } 142 142 143 - static int pending_registered=0; 143 + static int pending_registered; 144 144 static struct notifier_block pending_notifier = { 145 145 .notifier_call = pending_call, 146 146 };