diff mbox

[15/16] ASoC: wm9090: Remove redundant OOM message

Message ID 1403258352-8210-15-git-send-email-sachin.kamat@samsung.com (mailing list archive)
State Accepted
Commit 0463585ce5186e617aa5a04fa9f3f27160810a21
Headers show

Commit Message

Sachin Kamat June 20, 2014, 9:59 a.m. UTC
Let memory subsystem handle the error logging.

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
---
 sound/soc/codecs/wm9090.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Charles Keepax June 20, 2014, 3:06 p.m. UTC | #1
On Fri, Jun 20, 2014 at 03:29:11PM +0530, Sachin Kamat wrote:
> Let memory subsystem handle the error logging.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>

Thanks,
Charles
diff mbox

Patch

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)) {