From: Dan Carpenter Date: Wed, 11 Jul 2012 06:41:23 +0000 (+0300) Subject: ASoC: STA529: fix an error message X-Git-Tag: Ubuntu-5.10.0-12.13~21002^2~4^2~9 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f96985e3b3cfcd2d21faca79863fb34533d575aa;p=mirror_ubuntu-hirsute-kernel.git ASoC: STA529: fix an error message GCC complains that "ret" is uninitialized here. Signed-off-by: Dan Carpenter Acked-By: Rajeev Kumar Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/sta529.c b/sound/soc/codecs/sta529.c index a9f34c736bfa..0c225cd569d2 100644 --- a/sound/soc/codecs/sta529.c +++ b/sound/soc/codecs/sta529.c @@ -397,8 +397,9 @@ static __devinit int sta529_i2c_probe(struct i2c_client *i2c, sta529->regmap = devm_regmap_init_i2c(i2c, &sta529_regmap); if (IS_ERR(sta529->regmap)) { + ret = PTR_ERR(sta529->regmap); dev_err(&i2c->dev, "Failed to allocate regmap: %d\n", ret); - return PTR_ERR(sta529->regmap); + return ret; } i2c_set_clientdata(i2c, sta529);