Skip to content

Commit

Permalink
ASoC: Fix shadowed variables in twl4030
Browse files Browse the repository at this point in the history
No need to define second copies of mode and format, they're declared
with exactly the same type at the head of the function and there's no
conflict in their use.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Jun 20, 2009
1 parent a583cd5 commit b53109d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/codecs/twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -1609,8 +1609,6 @@ static int twl4030_hw_params(struct snd_pcm_substream *substream,

/* If the substream has 4 channel, do the necessary setup */
if (params_channels(params) == 4) {
u8 format, mode;

format = twl4030_read_reg_cache(codec, TWL4030_REG_AUDIO_IF);
mode = twl4030_read_reg_cache(codec, TWL4030_REG_CODEC_MODE);

Expand Down

0 comments on commit b53109d

Please sign in to comment.