diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-07-20 18:37:41 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-07-20 18:40:12 +0300 |
commit | e24ef4881bdd11c13d35235a410571c0d0aa0e5d (patch) | |
tree | 5584b1a4ab6b5a52c1f8abad4d0b4bacca9edcd9 /sound/isa | |
parent | 7f6726b63595c7ec8bc410364ab3be6cf4d4d407 (diff) | |
download | linux-e24ef4881bdd11c13d35235a410571c0d0aa0e5d.tar.xz |
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: 2973ee4a5b54 ("ALSA: opti9xx: Allocate resources with device-managed APIs")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210720153741.73230-1-colin.king@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r-- | sound/isa/opti9xx/opti92x-ad1848.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/isa/opti9xx/opti92x-ad1848.c b/sound/isa/opti9xx/opti92x-ad1848.c index 8988de8cca96..4beeb32fe2a7 100644 --- a/sound/isa/opti9xx/opti92x-ad1848.c +++ b/sound/isa/opti9xx/opti92x-ad1848.c @@ -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; |