aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/sb/sb8.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-12-11 06:12:06 -0500
committerTakashi Iwai <tiwai@suse.de>2008-12-11 06:12:06 -0500
commit42a73df435a23e60d97d9d860f4e55dc9833e950 (patch)
tree788ee88f31680810cb41f263ba7a03912899cda9 /sound/isa/sb/sb8.c
parentacc421656b97f09b55acb0938ad5378eefa5aacc (diff)
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: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/sb/sb8.c')
-rw-r--r--sound/isa/sb/sb8.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/isa/sb/sb8.c b/sound/isa/sb/sb8.c
index 667eccc676a4..ea06877be4b1 100644
--- a/sound/isa/sb/sb8.c
+++ b/sound/isa/sb/sb8.c
@@ -140,8 +140,10 @@ static int __devinit snd_sb8_probe(struct device *pdev, unsigned int dev)
140 break; 140 break;
141 } 141 }
142 } 142 }
143 if (i >= ARRAY_SIZE(possible_ports)) 143 if (i >= ARRAY_SIZE(possible_ports)) {
144 err = -EINVAL;
144 goto _err; 145 goto _err;
146 }
145 } 147 }
146 acard->chip = chip; 148 acard->chip = chip;
147 149