ALSA: sb: remove redundant assignment to variable result
authorColin Ian King <colin.king@canonical.com>
Tue, 13 Aug 2019 14:01:51 +0000 (15:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Aug 2019 15:44:06 +0000 (17:44 +0200)
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>
sound/isa/sb/sb_common.c

index 162338f..ff031d6 100644 (file)
@@ -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;