diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-05-17 11:14:51 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-06-22 15:33:45 -0400 |
commit | 6581f4e74d8541dd7d579f64e94822622cbb1654 (patch) | |
tree | fa7a0609c7a3e0460e052ab54a06a6fa935c64dc /sound/core/init.c | |
parent | 0fbf405c583e6ee6d7227eb938a096d0998f7e78 (diff) |
[ALSA] Remove zero-initialization of static variables
Removed zero-initializations of static variables.
A tiny optimization.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/init.c')
-rw-r--r-- | sound/core/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/core/init.c b/sound/core/init.c index 38b2d4a9d672..4d9258884e44 100644 --- a/sound/core/init.c +++ b/sound/core/init.c | |||
@@ -38,8 +38,8 @@ struct snd_shutdown_f_ops { | |||
38 | struct snd_shutdown_f_ops *next; | 38 | struct snd_shutdown_f_ops *next; |
39 | }; | 39 | }; |
40 | 40 | ||
41 | static unsigned int snd_cards_lock = 0; /* locked for registering/using */ | 41 | static unsigned int snd_cards_lock; /* locked for registering/using */ |
42 | struct snd_card *snd_cards[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = NULL}; | 42 | struct snd_card *snd_cards[SNDRV_CARDS]; |
43 | EXPORT_SYMBOL(snd_cards); | 43 | EXPORT_SYMBOL(snd_cards); |
44 | 44 | ||
45 | static DEFINE_MUTEX(snd_card_mutex); | 45 | static DEFINE_MUTEX(snd_card_mutex); |
@@ -529,7 +529,7 @@ int snd_card_register(struct snd_card *card) | |||
529 | EXPORT_SYMBOL(snd_card_register); | 529 | EXPORT_SYMBOL(snd_card_register); |
530 | 530 | ||
531 | #ifdef CONFIG_PROC_FS | 531 | #ifdef CONFIG_PROC_FS |
532 | static struct snd_info_entry *snd_card_info_entry = NULL; | 532 | static struct snd_info_entry *snd_card_info_entry; |
533 | 533 | ||
534 | static void snd_card_info_read(struct snd_info_entry *entry, | 534 | static void snd_card_info_read(struct snd_info_entry *entry, |
535 | struct snd_info_buffer *buffer) | 535 | struct snd_info_buffer *buffer) |