summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/twl4030.c
diff options
context:
space:
mode:
authorSachin Kamat2014-06-20 11:59:03 +0200
committerMark Brown2014-06-27 13:48:22 +0200
commit04cc41a809fb13867073ff76acf23e7df5c5b23d (patch)
tree90e8cf306cec220101b43e3d682e74884f4a0417 /sound/soc/codecs/twl4030.c
parentASoC: tpa6130a2: Remove redundant OOM message (diff)
downloadkernel-qcow2-linux-04cc41a809fb13867073ff76acf23e7df5c5b23d.tar.gz
kernel-qcow2-linux-04cc41a809fb13867073ff76acf23e7df5c5b23d.tar.xz
kernel-qcow2-linux-04cc41a809fb13867073ff76acf23e7df5c5b23d.zip
ASoC: twl4030: Remove redundant OOM message
Let memory subsystem handle the error logging. Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/twl4030.c')
-rw-r--r--sound/soc/codecs/twl4030.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index 69e12a311ba2..955df35c5ab6 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -2162,10 +2162,8 @@ static int twl4030_soc_probe(struct snd_soc_codec *codec)
twl4030 = devm_kzalloc(codec->dev, sizeof(struct twl4030_priv),
GFP_KERNEL);
- if (twl4030 == NULL) {
- dev_err(codec->dev, "Can not allocate memory\n");
+ if (!twl4030)
return -ENOMEM;
- }
snd_soc_codec_set_drvdata(codec, twl4030);
/* Set the defaults, and power up the codec */
twl4030->sysclk = twl4030_audio_get_mclk() / 1000;