From: Clemens Ladisch Date: Fri, 2 Jun 2006 07:15:44 +0000 (+0200) Subject: [ALSA] virmidi: revert erroneous removal of zero initialization X-Git-Tag: v2.6.18-rc1~1081^2~270 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5533bf36b4a6629dab0e08c4951247050928853;p=platform%2Fkernel%2Flinux-3.10.git [ALSA] virmidi: revert erroneous removal of zero initialization The last patch that tried to remove zero initializations of static variables accidentally removed a not-quite-zero initialization too. Signed-off-by: Clemens Ladisch --- diff --git a/sound/drivers/virmidi.c b/sound/drivers/virmidi.c index 72d09b3..59171f8 100644 --- a/sound/drivers/virmidi.c +++ b/sound/drivers/virmidi.c @@ -65,7 +65,7 @@ MODULE_SUPPORTED_DEVICE("{{ALSA,Virtual rawmidi device}}"); static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ -static int enable[SNDRV_CARDS]; +static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0}; static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4}; module_param_array(index, int, NULL, 0444);