summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/cs42l51.c
diff options
context:
space:
mode:
authorMark Brown2014-02-11 20:21:16 +0100
committerMark Brown2014-02-11 20:58:49 +0100
commit5be736442ed94217c6521ae0c948abab995f281f (patch)
treece47dc80753ca1e012ea6d61f488f2603b4a119a /sound/soc/codecs/cs42l51.c
parentASoC: cs42l51: add Device Tree binding to cs42l51 (diff)
downloadkernel-qcow2-linux-5be736442ed94217c6521ae0c948abab995f281f.tar.gz
kernel-qcow2-linux-5be736442ed94217c6521ae0c948abab995f281f.tar.xz
kernel-qcow2-linux-5be736442ed94217c6521ae0c948abab995f281f.zip
ASoC: cs42l51: Don't log if we fail to allocate memory
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>
Diffstat (limited to 'sound/soc/codecs/cs42l51.c')
-rw-r--r--sound/soc/codecs/cs42l51.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c
index 824cdf4d4974..b11079b38f15 100644
--- 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;