diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-10-22 16:30:10 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-10-22 10:47:48 +0200 |
commit | 86a778a78d06cdc8c3994837cd963c146acfba6a (patch) | |
tree | ec3443606769eaa4c4272f55f7cb8ab1bc798190 | |
parent | 7a75e742fa64b98e4d9e227aa6f52bb5dc0a2b9a (diff) | |
download | lwn-86a778a78d06cdc8c3994837cd963c146acfba6a.tar.gz lwn-86a778a78d06cdc8c3994837cd963c146acfba6a.zip |
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.c | 2 |
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) { u32 wallclk; unsigned int pos; - int stream; wallclk = azx_readl(chip, WALLCLK) - azx_dev->start_wallclk; if (wallclk < (azx_dev->period_wallclk * 2) / 3) return -1; /* bogus (too early) interrupt */ - stream = azx_dev->substream->stream; pos = azx_get_position(chip, azx_dev, true); if (WARN_ONCE(!azx_dev->period_bytes, |