ALSA: caiaq: Fix unused variable warning
Subsystems (2)
PATCH 1/1 ALSA: caiaq: Fix unused variable warning
The recent cleanup of caiaq driver forgot to remove the unused loop variable:sound/usb/caiaq/audio.c: In function 'snd_usb_caiaq_pcm_prepare':sound/usb/caiaq/audio.c:179:41: error: unused variable 'i' [-Werror=unused-variable]
Fixes e95b9f7f2ee0 ("ALSA: snd-usb-caiaq: use snd_pcm_rate_to_rate_bit")
Reported-by Stephen Rothwell <[email protected]>
Signed-off-by Takashi Iwai <[email protected]>
--- sound/usb/caiaq/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/usb/caiaq/audio.c +1 -1
@@ -176,7 +176,7 @@ static int snd_usb_caiaq_pcm_hw_free(struct snd_pcm_substream *sub)static int snd_usb_caiaq_pcm_prepare (struct snd_pcm_substream *substream) { -int bytes_per_sample, bpp, ret, i; +int bytes_per_sample, bpp, ret;int index = substream->number;struct snd_usb_caiaqdev *cdev =snd_pcm_substream_chip (substream);struct snd_pcm_runtime *runtime = substream->runtime;
Signature · 1 line
2.43.0
Quoted 9 lines · Takashi Iwai
The recent cleanup of caiaq driver forgot to remove the unused loop variable:
sound/usb/caiaq/audio.c: In function 'snd_usb_caiaq_pcm_prepare':sound/usb/caiaq/audio.c:179:41: error: unused variable 'i' [-Werror=unused-variable]Fixes e95b9f7f2ee0 ("ALSA: snd-usb-caiaq: use snd_pcm_rate_to_rate_bit")Reported-by Stephen Rothwell <[email protected]>Signed-off-by Takashi Iwai <[email protected]>
Urgh, sorry about that. Thanks for taking care of it.
Quoted 17 lines
--- sound/usb/caiaq/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)sound/usb/caiaq/audio.c +1
-1@@ -176,7 +176,7 @@ static int snd_usb_caiaq_pcm_hw_free(struct snd_pcm_substream *sub)static int snd_usb_caiaq_pcm_prepare (struct snd_pcm_substream *substream) { -int bytes_per_sample, bpp, ret, i; +int bytes_per_sample, bpp, ret;int index = substream->number;struct snd_usb_caiaqdev *cdev =snd_pcm_substream_chip (substream);struct snd_pcm_runtime *runtime = substream->runtime;
Signature · 1 line
Jerome