Skip to contentSkip to conversation

ASoC: sn95031: Do not use static variable for channel_index

PATCH Applied Axel Lin 2 participants 2 messages Sep 30, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: sn95031: Do not use static variable for channel_index

No reason to use static variable for channel_index.

---
 sound/soc/codecs/sn95031.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/sn95031.c +1 -1
index adb85bf..02a4857 100644
@@ -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);
Signature · 1 line
1.7.4.1
Applied
#1 lore raw
Quoted 1 line · Axel Lin

No reason to use static variable for channel_index.

Applied, thanks.