aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-10-22 04:30:10 -0400
committerTakashi Iwai <tiwai@suse.de>2012-10-22 04:47:48 -0400
commit86a778a78d06cdc8c3994837cd963c146acfba6a (patch)
treeec3443606769eaa4c4272f55f7cb8ab1bc798190
parent7a75e742fa64b98e4d9e227aa6f52bb5dc0a2b9a (diff)
ALSA: hda - remove unused variable in azx_position_ok()
The variable stream is initialized but never used otherwise, so remove the unused variable. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/hda/hda_intel.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index b6ffdd8474c3..8fd250d8ed77 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2211,13 +2211,11 @@ static int azx_position_ok(struct azx *chip, struct azx_dev *azx_dev)
2211{ 2211{
2212 u32 wallclk; 2212 u32 wallclk;
2213 unsigned int pos; 2213 unsigned int pos;
2214 int stream;
2215 2214
2216 wallclk = azx_readl(chip, WALLCLK) - azx_dev->start_wallclk; 2215 wallclk = azx_readl(chip, WALLCLK) - azx_dev->start_wallclk;
2217 if (wallclk < (azx_dev->period_wallclk * 2) / 3) 2216 if (wallclk < (azx_dev->period_wallclk * 2) / 3)
2218 return -1; /* bogus (too early) interrupt */ 2217 return -1; /* bogus (too early) interrupt */
2219 2218
2220 stream = azx_dev->substream->stream;
2221 pos = azx_get_position(chip, azx_dev, true); 2219 pos = azx_get_position(chip, azx_dev, true);
2222 2220
2223 if (WARN_ONCE(!azx_dev->period_bytes, 2221 if (WARN_ONCE(!azx_dev->period_bytes,