summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/sta529.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-06-20 11:59:00 +0200
committerMark Brown <broonie@linaro.org>2014-06-27 13:48:21 +0200
commit5c1573a342ad6452f2d7af284612baae5d532a0a (patch)
tree421986b2dee63bcd4c21907f532dc73902b515ae /sound/soc/codecs/sta529.c
parentASoC: sgtl5000: Remove redundant OOM message (diff)
downloadlinux-5c1573a342ad6452f2d7af284612baae5d532a0a.tar.xz
linux-5c1573a342ad6452f2d7af284612baae5d532a0a.zip
ASoC: sta529: 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/sta529.c')
-rw-r--r--sound/soc/codecs/sta529.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/sta529.c b/sound/soc/codecs/sta529.c
index a40c4b0196a3..fcdf11026aff 100644
--- a/sound/soc/codecs/sta529.c
+++ b/sound/soc/codecs/sta529.c
@@ -380,10 +380,8 @@ static int sta529_i2c_probe(struct i2c_client *i2c,
return -EINVAL;
sta529 = devm_kzalloc(&i2c->dev, sizeof(struct sta529), GFP_KERNEL);
- if (sta529 == NULL) {
- dev_err(&i2c->dev, "Can not allocate memory\n");
+ if (!sta529)
return -ENOMEM;
- }
sta529->regmap = devm_regmap_init_i2c(i2c, &sta529_regmap);
if (IS_ERR(sta529->regmap)) {