Skip to content

Commit

Permalink
ASoC: sn95031: Do not use static variable for channel_index
Browse files Browse the repository at this point in the history
No reason to use static variable for channel_index.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Sep 30, 2011
1 parent 5992c58 commit f34dafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/sn95031.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,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);
Expand Down

0 comments on commit f34dafb

Please sign in to comment.