mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-18 04:54:52 +00:00
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>
This commit is contained in:
parent
31fa571c01
commit
d7da429339
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue