mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda - remove unused variable in azx_position_ok()
@ 2012-10-22  8:30 Wei Yongjun
  2012-10-22  9:00 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2012-10-22  8:30 UTC (permalink / raw)
  To: perex, tiwai; +Cc: yongjun_wei, alsa-devel, linux-kernel

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

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>
---
 sound/pci/hda/hda_intel.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 72b085a..0ceed85 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2193,13 +2193,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,


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ALSA: hda - remove unused variable in azx_position_ok()
  2012-10-22  8:30 [PATCH] ALSA: hda - remove unused variable in azx_position_ok() Wei Yongjun
@ 2012-10-22  9:00 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2012-10-22  9:00 UTC (permalink / raw)
  To: Wei Yongjun; +Cc: perex, yongjun_wei, alsa-devel, linux-kernel

At Mon, 22 Oct 2012 16:30:10 +0800,
Wei Yongjun wrote:
> 
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> 
> 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>

Thanks, applied.


Takashi

> ---
>  sound/pci/hda/hda_intel.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
> index 72b085a..0ceed85 100644
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@ -2193,13 +2193,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,
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-22  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-22  8:30 [PATCH] ALSA: hda - remove unused variable in azx_position_ok() Wei Yongjun
2012-10-22  9:00 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome