ALSA: ice1712: remove unused variable
authorSudip Mukherjee <sudip@vectorindia.org>
Fri, 14 Nov 2014 10:39:07 +0000 (16:09 +0530)
committerTakashi Iwai <tiwai@suse.de>
Fri, 14 Nov 2014 13:16:43 +0000 (14:16 +0100)
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>
sound/pci/ice1712/ice1712.c

index 597533490f2d65d41faf491ae634f4447e140c0a..65251911cf6f34a0782eb210bfdee2aaa38989c9 100644 (file)
@@ -620,10 +620,9 @@ static int snd_ice1712_playback_ds_prepare(struct snd_pcm_substream *substream)
 {
        struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
        struct snd_pcm_runtime *runtime = substream->runtime;
-       u32 period_size, buf_size, rate, tmp, chn;
+       u32 period_size, rate, tmp, chn;
 
        period_size = snd_pcm_lib_period_bytes(substream) - 1;
-       buf_size = snd_pcm_lib_buffer_bytes(substream) - 1;
        tmp = 0x0064;
        if (snd_pcm_format_width(runtime->format) == 16)
                tmp &= ~0x04;