projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be81333
)
ASoC: sta529: Remove redundant OOM message
author
Sachin Kamat
<sachin.kamat@samsung.com>
Fri, 20 Jun 2014 09:59:00 +0000
(15:29 +0530)
committer
Mark Brown
<broonie@linaro.org>
Fri, 27 Jun 2014 11:48:21 +0000
(12:48 +0100)
Let memory subsystem handle the error logging.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/sta529.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/sta529.c
b/sound/soc/codecs/sta529.c
index a40c4b0196a3cfc42a0ebd464d067e0d379f9daa..fcdf11026afffef47015ea8072469c34b916b739 100644
(file)
--- a/
sound/soc/codecs/sta529.c
+++ b/
sound/soc/codecs/sta529.c
@@
-380,10
+380,8
@@
static int sta529_i2c_probe(struct i2c_client *i2c,
return -EINVAL;
sta529 = devm_kzalloc(&i2c->dev, sizeof(struct sta529), GFP_KERNEL);
- if (sta529 == NULL) {
- dev_err(&i2c->dev, "Can not allocate memory\n");
+ if (!sta529)
return -ENOMEM;
- }
sta529->regmap = devm_regmap_init_i2c(i2c, &sta529_regmap);
if (IS_ERR(sta529->regmap)) {