Skip to content

Commit 833bc4c

Browse files
Dan Carpenterbroonie
authored andcommitted
ASoC: cs35l33: fix an error code in probe()
This error path returns zero (success) but it should return -EINVAL. Fixes: 3333cb7 ("ASoC: cs35l33: Initial commit of the cs35l33 CODEC driver.") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/r/YKXuyGEzhPT35R3G@mwanda Signed-off-by: Mark Brown <[email protected]>
1 parent 8c08652 commit 833bc4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/codecs/cs35l33.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,6 +1201,7 @@ static int cs35l33_i2c_probe(struct i2c_client *i2c_client,
12011201
dev_err(&i2c_client->dev,
12021202
"CS35L33 Device ID (%X). Expected ID %X\n",
12031203
devid, CS35L33_CHIP_ID);
1204+
ret = -EINVAL;
12041205
goto err_enable;
12051206
}
12061207

0 commit comments

Comments
 (0)