diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-06-20 15:29:11 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-27 12:48:23 +0100 |
commit | 0463585ce5186e617aa5a04fa9f3f27160810a21 (patch) | |
tree | 77f630374701a19a92d4d51dc1d56ba9acde1895 /sound/soc/codecs/wm9090.c | |
parent | 549f66e0286bb800e024d80582f9c95c6f4f5947 (diff) | |
download | linux-0463585ce5186e617aa5a04fa9f3f27160810a21.tar.gz linux-0463585ce5186e617aa5a04fa9f3f27160810a21.tar.bz2 linux-0463585ce5186e617aa5a04fa9f3f27160810a21.zip |
ASoC: wm9090: Remove redundant OOM message
Let memory subsystem handle the error logging.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/wm9090.c')
-rw-r--r-- | sound/soc/codecs/wm9090.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm9090.c b/sound/soc/codecs/wm9090.c index 87934171f063..a13f0725611a 100644 --- a/sound/soc/codecs/wm9090.c +++ b/sound/soc/codecs/wm9090.c @@ -613,10 +613,8 @@ static int wm9090_i2c_probe(struct i2c_client *i2c, int ret; wm9090 = devm_kzalloc(&i2c->dev, sizeof(*wm9090), GFP_KERNEL); - if (wm9090 == NULL) { - dev_err(&i2c->dev, "Can not allocate memory\n"); + if (!wm9090) return -ENOMEM; - } wm9090->regmap = devm_regmap_init_i2c(i2c, &wm9090_regmap); if (IS_ERR(wm9090->regmap)) { |