summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-06-20 11:59:02 +0200
committerMark Brown <broonie@linaro.org>2014-06-27 13:48:22 +0200
commit656e3435752a66810ee0f8bcb8e012e9e6f26a42 (patch)
tree44fa56b524f4ace53058b3b72e8ab037e52a907a /sound/soc/codecs
parentASoC: tlv320aic3x: Remove redundant OOM message (diff)
downloadlinux-656e3435752a66810ee0f8bcb8e012e9e6f26a42.tar.xz
linux-656e3435752a66810ee0f8bcb8e012e9e6f26a42.zip
ASoC: tpa6130a2: 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')
-rw-r--r--sound/soc/codecs/tpa6130a2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c
index 8fc5a647453b..6fac9e034c48 100644
--- a/sound/soc/codecs/tpa6130a2.c
+++ b/sound/soc/codecs/tpa6130a2.c
@@ -381,10 +381,8 @@ static int tpa6130a2_probe(struct i2c_client *client,
dev = &client->dev;
data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL);
- if (data == NULL) {
- dev_err(dev, "Can not allocate memory\n");
+ if (!data)
return -ENOMEM;
- }
if (pdata) {
data->power_gpio = pdata->power_gpio;