ALSA: ens137x: remove redundant variable result
Variable result is being assigned a value from a calculation however the variable is never read, so this redundant variable can be removed. Cleans up clang warning: Value stored to 'result' is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
de16898138
commit
40ddfe659a
|
@ -732,7 +732,7 @@ static void snd_es1371_codec_wait(struct snd_ac97 *ac97)
|
||||||
|
|
||||||
static void snd_es1371_adc_rate(struct ensoniq * ensoniq, unsigned int rate)
|
static void snd_es1371_adc_rate(struct ensoniq * ensoniq, unsigned int rate)
|
||||||
{
|
{
|
||||||
unsigned int n, truncm, freq, result;
|
unsigned int n, truncm, freq;
|
||||||
|
|
||||||
mutex_lock(&ensoniq->src_mutex);
|
mutex_lock(&ensoniq->src_mutex);
|
||||||
n = rate / 3000;
|
n = rate / 3000;
|
||||||
|
@ -740,7 +740,6 @@ static void snd_es1371_adc_rate(struct ensoniq * ensoniq, unsigned int rate)
|
||||||
n--;
|
n--;
|
||||||
truncm = (21 * n - 1) | 1;
|
truncm = (21 * n - 1) | 1;
|
||||||
freq = ((48000UL << 15) / rate) * n;
|
freq = ((48000UL << 15) / rate) * n;
|
||||||
result = (48000UL << 15) / (freq / n);
|
|
||||||
if (rate >= 24000) {
|
if (rate >= 24000) {
|
||||||
if (truncm > 239)
|
if (truncm > 239)
|
||||||
truncm = 239;
|
truncm = 239;
|
||||||
|
|
Loading…
Reference in New Issue