提交 5be73644 编写于 作者: M Mark Brown

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: NMark Brown <broonie@linaro.org>
Acked-by: NBrian Austin <brian.austin@cirrus.com>
上级 dfd72a68
...@@ -574,10 +574,8 @@ static int cs42l51_i2c_probe(struct i2c_client *i2c_client, ...@@ -574,10 +574,8 @@ static int cs42l51_i2c_probe(struct i2c_client *i2c_client,
cs42l51 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs42l51_private), cs42l51 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs42l51_private),
GFP_KERNEL); GFP_KERNEL);
if (!cs42l51) { if (!cs42l51)
dev_err(&i2c_client->dev, "could not allocate codec\n");
return -ENOMEM; return -ENOMEM;
}
i2c_set_clientdata(i2c_client, cs42l51); i2c_set_clientdata(i2c_client, cs42l51);
cs42l51->control_type = SND_SOC_I2C; cs42l51->control_type = SND_SOC_I2C;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册