summaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-02-08 22:20:06 +0000
committerTakashi Iwai <tiwai@suse.de>2020-02-10 08:29:26 +0100
commit0cc629722221701a1b1030477c44dfbaca6c110d (patch)
tree041729e28ddba402314862fe74ad5bcb6ab30bf0 /sound/pci
parent49d9e43f36fd4b71a4c1888f86c09cf73be73d0b (diff)
downloadlinux-0cc629722221701a1b1030477c44dfbaca6c110d.tar.bz2
ALSA: hdsp: remove redundant assignment to variable err
Variable err is being assigned with a value that is never read, it is assigned a new value in the next statement. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20200208222006.37376-1-colin.king@canonical.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/rme9652/hdsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c
index cc06f0a1a7e4..227aece17e39 100644
--- a/sound/pci/rme9652/hdsp.c
+++ b/sound/pci/rme9652/hdsp.c
@@ -3353,7 +3353,8 @@ snd_hdsp_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer)
return;
}
} else {
- int err = -EINVAL;
+ int err;
+
err = hdsp_request_fw_loader(hdsp);
if (err < 0) {
snd_iprintf(buffer,