diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-06-20 05:58:58 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-27 07:48:21 -0400 |
commit | 10d95ad48b4bf49b9853466654654eec2d9df031 (patch) | |
tree | 0809daf41467e32de3119a19c6d3aa62f05a299c /sound/soc/codecs/cs42l73.c | |
parent | 0e0327f2ab722e9e1e55c225cb86e1b02336ec96 (diff) |
ASoC: cs42l73: Remove redundant OOM message
Let memory subsystem handle the error logging.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/cs42l73.c')
-rw-r--r-- | sound/soc/codecs/cs42l73.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c index ae3717992d56..e3b601624794 100644 --- a/sound/soc/codecs/cs42l73.c +++ b/sound/soc/codecs/cs42l73.c | |||
@@ -1408,10 +1408,8 @@ static int cs42l73_i2c_probe(struct i2c_client *i2c_client, | |||
1408 | 1408 | ||
1409 | cs42l73 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs42l73_private), | 1409 | cs42l73 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs42l73_private), |
1410 | GFP_KERNEL); | 1410 | GFP_KERNEL); |
1411 | if (!cs42l73) { | 1411 | if (!cs42l73) |
1412 | dev_err(&i2c_client->dev, "could not allocate codec\n"); | ||
1413 | return -ENOMEM; | 1412 | return -ENOMEM; |
1414 | } | ||
1415 | 1413 | ||
1416 | cs42l73->regmap = devm_regmap_init_i2c(i2c_client, &cs42l73_regmap); | 1414 | cs42l73->regmap = devm_regmap_init_i2c(i2c_client, &cs42l73_regmap); |
1417 | if (IS_ERR(cs42l73->regmap)) { | 1415 | if (IS_ERR(cs42l73->regmap)) { |