summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-06-20 13:59:02 +0400
committerMark Brown <broonie@linaro.org>2014-06-27 15:48:22 +0400
commit656e3435752a66810ee0f8bcb8e012e9e6f26a42 (patch)
tree44fa56b524f4ace53058b3b72e8ab037e52a907a /sound/soc
parentb1117f5294ed845aefa499d67ca4faf2493bdf99 (diff)
downloadlinux-656e3435752a66810ee0f8bcb8e012e9e6f26a42.tar.xz
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')
-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;