Skip to content

Commit

Permalink
ALSA: hda - remove unused variable in azx_position_ok()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Takashi Iwai committed Oct 22, 2012
1 parent 7a75e74 commit 86a778a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 86a778a

Please sign in to comment.