aboutsummaryrefslogtreecommitdiff
path: root/sound/isa
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-08-13 15:01:51 +0100
committerTakashi Iwai <tiwai@suse.de>2019-08-14 17:44:06 +0200
commitd7da429339f503854b777ed941456841a72b48b6 (patch)
treef36adc6dca2c2c128020eb7619f4c693e352cf6b /sound/isa
parent31fa571c01d869c659d6bc0a7960a55ce314923c (diff)
downloadlinux-d7da429339f503854b777ed941456841a72b48b6.tar.gz
ALSA: sb: remove redundant assignment to variable result
Variable result is initialized to a value that is never read and it is re-assigned later. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/sb/sb_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/sb/sb_common.c b/sound/isa/sb/sb_common.c
index 162338f1b68a..ff031d670400 100644
--- a/sound/isa/sb/sb_common.c
+++ b/sound/isa/sb/sb_common.c
@@ -80,7 +80,7 @@ int snd_sbdsp_reset(struct snd_sb *chip)
static int snd_sbdsp_version(struct snd_sb * chip)
{
- unsigned int result = -ENODEV;
+ unsigned int result;
snd_sbdsp_command(chip, SB_DSP_GET_VERSION);
result = (short) snd_sbdsp_get_byte(chip) << 8;