提交 04cc41a8 编写于 作者: S Sachin Kamat 提交者: Mark Brown

ASoC: twl4030: Remove redundant OOM message

Let memory subsystem handle the error logging.
Signed-off-by: NSachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 656e3435
...@@ -2162,10 +2162,8 @@ static int twl4030_soc_probe(struct snd_soc_codec *codec) ...@@ -2162,10 +2162,8 @@ static int twl4030_soc_probe(struct snd_soc_codec *codec)
twl4030 = devm_kzalloc(codec->dev, sizeof(struct twl4030_priv), twl4030 = devm_kzalloc(codec->dev, sizeof(struct twl4030_priv),
GFP_KERNEL); GFP_KERNEL);
if (twl4030 == NULL) { if (!twl4030)
dev_err(codec->dev, "Can not allocate memory\n");
return -ENOMEM; return -ENOMEM;
}
snd_soc_codec_set_drvdata(codec, twl4030); snd_soc_codec_set_drvdata(codec, twl4030);
/* Set the defaults, and power up the codec */ /* Set the defaults, and power up the codec */
twl4030->sysclk = twl4030_audio_get_mclk() / 1000; twl4030->sysclk = twl4030_audio_get_mclk() / 1000;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册