diff options
author | Sudip Mukherjee <sudip@vectorindia.org> | 2014-11-14 05:39:07 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-11-14 08:16:43 -0500 |
commit | b393df0145e271724fee10f93c023662f8557bb9 (patch) | |
tree | c0f0bc128aea4e776727e28e301094e45097ed2e | |
parent | 387417b56295ef93d7cb38e1721826c85dfe897c (diff) |
ALSA: ice1712: remove unused variable
buf_size was initialized with snd_pcm_lib_buffer_bytes,
but never used. and so it is safe to be deleted.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/ice1712/ice1712.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index 597533490f2d..65251911cf6f 100644 --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c | |||
@@ -620,10 +620,9 @@ static int snd_ice1712_playback_ds_prepare(struct snd_pcm_substream *substream) | |||
620 | { | 620 | { |
621 | struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); | 621 | struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); |
622 | struct snd_pcm_runtime *runtime = substream->runtime; | 622 | struct snd_pcm_runtime *runtime = substream->runtime; |
623 | u32 period_size, buf_size, rate, tmp, chn; | 623 | u32 period_size, rate, tmp, chn; |
624 | 624 | ||
625 | period_size = snd_pcm_lib_period_bytes(substream) - 1; | 625 | period_size = snd_pcm_lib_period_bytes(substream) - 1; |
626 | buf_size = snd_pcm_lib_buffer_bytes(substream) - 1; | ||
627 | tmp = 0x0064; | 626 | tmp = 0x0064; |
628 | if (snd_pcm_format_width(runtime->format) == 16) | 627 | if (snd_pcm_format_width(runtime->format) == 16) |
629 | tmp &= ~0x04; | 628 | tmp &= ~0x04; |