From patchwork Fri Jun 20 09:59:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 4387691 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D22D3BEEAA for ; Fri, 20 Jun 2014 10:04:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 25B822039D for ; Fri, 20 Jun 2014 10:04:35 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 0E01620351 for ; Fri, 20 Jun 2014 10:04:34 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 28D1926514B; Fri, 20 Jun 2014 12:04:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, NO_DNS_FOR_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 2DDE6264F23; Fri, 20 Jun 2014 12:02:40 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5E27D264F23; Fri, 20 Jun 2014 12:02:39 +0200 (CEST) Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by alsa0.perex.cz (Postfix) with ESMTP id 3E97F261AF9 for ; Fri, 20 Jun 2014 12:02:33 +0200 (CEST) Received: by mail-pd0-f176.google.com with SMTP id ft15so2816202pdb.35 for ; Fri, 20 Jun 2014 03:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=31Gx1pUlEdApuGVBS0t+vB3Ow4QkdX6LOkJuaR8lipo=; b=WH3ZSV4UJxAddYAQlKwUATn1lTa9tky6nTlSv5hT3ma1M88u60wcNzTalLhXgCE5AN yvD9li4Is9+rYaxs75ruIKfwwFw3Mc0+PtLfa/6tL29DHaFrueujYPbAJosU4pDKi5ta 6+3kBdtLUmJLAAuvTvFaociM5ZewBNtQOE9CotOACJW7UBc50cD9OF4jaKSabsB/BgRq en9MqPMpOR19IsvuBggFrCwVa249/MI4sx+mLLZ0E7OOodBWVY+0E48Ub8khHjJVKjyi r2XvjPZFmCgKS7z5r5uZZMvpB1nmIhO1ff2IokFLZr3hV15uy/8adJv9GeuYIrLj/jtf M/lw== X-Received: by 10.66.102.102 with SMTP id fn6mr3255200pab.6.1403258552372; Fri, 20 Jun 2014 03:02:32 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id ha10sm12718305pbd.1.2014.06.20.03.02.29 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Jun 2014 03:02:31 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Date: Fri, 20 Jun 2014 15:29:00 +0530 Message-Id: <1403258352-8210-4-git-send-email-sachin.kamat@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1403258352-8210-1-git-send-email-sachin.kamat@samsung.com> References: <1403258352-8210-1-git-send-email-sachin.kamat@samsung.com> Cc: broonie@kernel.org, spk.linux@gmail.com, lgirdwood@gmail.com Subject: [alsa-devel] [PATCH 04/16] ASoC: sta529: Remove redundant OOM message X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Let memory subsystem handle the error logging. Signed-off-by: Sachin Kamat --- sound/soc/codecs/sta529.c | 4 +--- 1 file changed, 1 insertion(+), 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)) {