diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-06-20 11:59:02 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-27 13:48:22 +0200 |
commit | 656e3435752a66810ee0f8bcb8e012e9e6f26a42 (patch) | |
tree | 44fa56b524f4ace53058b3b72e8ab037e52a907a /sound/soc/codecs | |
parent | ASoC: tlv320aic3x: Remove redundant OOM message (diff) | |
download | linux-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.c | 4 |
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; |