diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-15 23:16:45 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-10-16 13:36:24 +0200 |
commit | 40ddfe659a19baa2ccc73899a150ca03373c44aa (patch) | |
tree | 0c42642e14bbfb696e5d44531d888ea52fa559ea | |
parent | ALSA: pcm: remove redundant variable runtime (diff) | |
download | linux-40ddfe659a19baa2ccc73899a150ca03373c44aa.tar.xz linux-40ddfe659a19baa2ccc73899a150ca03373c44aa.zip |
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>
-rw-r--r-- | sound/pci/ens1370.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index d4cd6451fdca..39f79a6b5283 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c @@ -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) { - unsigned int n, truncm, freq, result; + unsigned int n, truncm, freq; mutex_lock(&ensoniq->src_mutex); n = rate / 3000; @@ -740,7 +740,6 @@ static void snd_es1371_adc_rate(struct ensoniq * ensoniq, unsigned int rate) n--; truncm = (21 * n - 1) | 1; freq = ((48000UL << 15) / rate) * n; - result = (48000UL << 15) / (freq / n); if (rate >= 24000) { if (truncm > 239) truncm = 239; |