aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/cs4270.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-06-20 05:58:57 -0400
committerMark Brown <broonie@linaro.org>2014-06-27 07:48:21 -0400
commit0e0327f2ab722e9e1e55c225cb86e1b02336ec96 (patch)
treeb1f08d7f7cd6ad197fd47dadae0ad91e925f9592 /sound/soc/codecs/cs4270.c
parent7171511eaec5bf23fb06078f59784a3a0626b38f (diff)
ASoC: cs4270: 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/cs4270.c')
-rw-r--r--sound/soc/codecs/cs4270.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c
index 9947a9583679..e6d4ff9fd992 100644
--- a/sound/soc/codecs/cs4270.c
+++ b/sound/soc/codecs/cs4270.c
@@ -664,10 +664,8 @@ static int cs4270_i2c_probe(struct i2c_client *i2c_client,
664 664
665 cs4270 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4270_private), 665 cs4270 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4270_private),
666 GFP_KERNEL); 666 GFP_KERNEL);
667 if (!cs4270) { 667 if (!cs4270)
668 dev_err(&i2c_client->dev, "could not allocate codec\n");
669 return -ENOMEM; 668 return -ENOMEM;
670 }
671 669
672 /* get the power supply regulators */ 670 /* get the power supply regulators */
673 for (i = 0; i < ARRAY_SIZE(supply_names); i++) 671 for (i = 0; i < ARRAY_SIZE(supply_names); i++)