Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b393df01 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Takashi Iwai
Browse files

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: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 387417b5
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -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_ice1712 *ice = snd_pcm_substream_chip(substream);
	struct snd_pcm_runtime *runtime = substream->runtime;
	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;
	period_size = snd_pcm_lib_period_bytes(substream) - 1;
	buf_size = snd_pcm_lib_buffer_bytes(substream) - 1;
	tmp = 0x0064;
	tmp = 0x0064;
	if (snd_pcm_format_width(runtime->format) == 16)
	if (snd_pcm_format_width(runtime->format) == 16)
		tmp &= ~0x04;
		tmp &= ~0x04;