projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfd72a6
)
ASoC: cs42l51: Don't log if we fail to allocate memory
author
Mark Brown
<broonie@linaro.org>
Tue, 11 Feb 2014 19:21:16 +0000
(19:21 +0000)
committer
Mark Brown
<broonie@linaro.org>
Tue, 11 Feb 2014 19:58:49 +0000
(19:58 +0000)
The VM subsystem already logs quite loudly if we run out of memory so
don't bother here.
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Brian Austin <brian.austin@cirrus.com>
sound/soc/codecs/cs42l51.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/cs42l51.c
b/sound/soc/codecs/cs42l51.c
index 824cdf4d4974a6e5e21a11dda136e2a05bff33a3..b11079b38f151b12ca8ed7de13b65bfd05914ad3 100644
(file)
--- a/
sound/soc/codecs/cs42l51.c
+++ b/
sound/soc/codecs/cs42l51.c
@@
-574,10
+574,8
@@
static int cs42l51_i2c_probe(struct i2c_client *i2c_client,
cs42l51 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs42l51_private),
GFP_KERNEL);
- if (!cs42l51) {
- dev_err(&i2c_client->dev, "could not allocate codec\n");
+ if (!cs42l51)
return -ENOMEM;
- }
i2c_set_clientdata(i2c_client, cs42l51);
cs42l51->control_type = SND_SOC_I2C;