From: Markus Elfring Date: Thu, 23 Nov 2017 21:28:00 +0000 (+0100) Subject: ASoC: wm2000: Delete an error message for a failed memory allocation in wm2000_i2c_pr... X-Git-Tag: v4.16-rc1~197^2~1^2~1^3~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e866d87a7de38672f52c6e7567e88c3f82f937dc;p=thirdparty%2Fkernel%2Flinux.git ASoC: wm2000: Delete an error message for a failed memory allocation in wm2000_i2c_probe() Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Acked-by: Charles Keepax Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c index 23cde3a0dc112..ce936deed7e39 100644 --- a/sound/soc/codecs/wm2000.c +++ b/sound/soc/codecs/wm2000.c @@ -902,7 +902,6 @@ static int wm2000_i2c_probe(struct i2c_client *i2c, wm2000->anc_download_size, GFP_KERNEL); if (wm2000->anc_download == NULL) { - dev_err(&i2c->dev, "Out of memory\n"); ret = -ENOMEM; goto err_supplies; }