diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-06-20 05:59:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-27 07:48:22 -0400 |
commit | 04cc41a809fb13867073ff76acf23e7df5c5b23d (patch) | |
tree | 90e8cf306cec220101b43e3d682e74884f4a0417 | |
parent | 656e3435752a66810ee0f8bcb8e012e9e6f26a42 (diff) |
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>
-rw-r--r-- | sound/soc/codecs/twl4030.c | 4 |
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) | |||
2162 | 2162 | ||
2163 | twl4030 = devm_kzalloc(codec->dev, sizeof(struct twl4030_priv), | 2163 | twl4030 = devm_kzalloc(codec->dev, sizeof(struct twl4030_priv), |
2164 | GFP_KERNEL); | 2164 | GFP_KERNEL); |
2165 | if (twl4030 == NULL) { | 2165 | if (!twl4030) |
2166 | dev_err(codec->dev, "Can not allocate memory\n"); | ||
2167 | return -ENOMEM; | 2166 | return -ENOMEM; |
2168 | } | ||
2169 | snd_soc_codec_set_drvdata(codec, twl4030); | 2167 | snd_soc_codec_set_drvdata(codec, twl4030); |
2170 | /* Set the defaults, and power up the codec */ | 2168 | /* Set the defaults, and power up the codec */ |
2171 | twl4030->sysclk = twl4030_audio_get_mclk() / 1000; | 2169 | twl4030->sysclk = twl4030_audio_get_mclk() / 1000; |