Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42a73df4 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: sb8 - Fix a return code in the error path



Fixed a compile warning below:
  sound/isa/sb/sb8.c: In function ‘snd_sb8_probe’:
  sound/isa/sb/sb8.c:104: warning: ‘err’ may be used uninitialized in this function
by setting the return value correctly.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent acc42165
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -140,9 +140,11 @@ static int __devinit snd_sb8_probe(struct device *pdev, unsigned int dev)
				break;
			}
		}
		if (i >= ARRAY_SIZE(possible_ports))
		if (i >= ARRAY_SIZE(possible_ports)) {
			err = -EINVAL;
			goto _err;
		}
	}
	acard->chip = chip;
			
	if (chip->hardware >= SB_HW_16) {