[alsa-devel] [PATCH] ASoC: sn95031: Do not use static variable for channel_index

Axel Lin axel.lin at gmail.com
Fri Sep 30 07:56:59 CEST 2011


No reason to use static variable for channel_index.

Signed-off-by: Axel Lin <axel.lin at gmail.com>
---
 sound/soc/codecs/sn95031.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c
index adb85bf..02a4857 100644
--- a/sound/soc/codecs/sn95031.c
+++ b/sound/soc/codecs/sn95031.c
@@ -103,7 +103,7 @@ static int sn95031_initialize_adc(struct snd_soc_codec *sn95031_codec)
 {
 	int base_addr, chnl_addr;
 	int value;
-	static int channel_index;
+	int channel_index;
 
 	/* Index of the first channel in which the stop bit is set */
 	channel_index = find_free_channel(sn95031_codec);
-- 
1.7.4.1





More information about the Alsa-devel mailing list