projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b4d39f
)
ASoC: STA529: fix an error message
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 11 Jul 2012 06:41:23 +0000
(09:41 +0300)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Wed, 11 Jul 2012 09:37:15 +0000
(10:37 +0100)
GCC complains that "ret" is uninitialized here.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-By: Rajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/sta529.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/sta529.c
b/sound/soc/codecs/sta529.c
index a9f34c736bfa2a8a707739acce40a11ee6429af3..0c225cd569d231007b92c51bc7c8cf4baf02b9dc 100644
(file)
--- 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);