Commit e24ef488 authored by Colin Ian King's avatar Colin Ian King Committed by Takashi Iwai
Browse files

ALSA: opti9xx: fix missing { } around an if block



Currently the { } braces are missing around an if block causing subsequent
code after the return to become unreachable. Fix this by adding the
missing { }.

Addresses-Coverity: ("Structurally dead code")
Fixes: 2973ee4a ("ALSA: opti9xx: Allocate resources with device-managed APIs")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210720153741.73230-1-colin.king@canonical.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 7f6726b6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1096,9 +1096,10 @@ static int snd_opti9xx_pnp_probe(struct pnp_card_link *pcard,
	if (error)
		return error;
	error = snd_opti9xx_read_check(card, chip);
	if (error)
	if (error) {
		snd_printk(KERN_ERR "OPTI chip not found\n");
		return error;
	}
	error = snd_opti9xx_probe(card);
	if (error < 0)
		return error;