From patchwork Fri Jun 20 09:58:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 4387671 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 7E6C8BEEAA for ; Fri, 20 Jun 2014 10:03:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CBE352037F for ; Fri, 20 Jun 2014 10:03:19 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id A45E820351 for ; Fri, 20 Jun 2014 10:03:18 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7997C2650D8; Fri, 20 Jun 2014 12:03:17 +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 03C2C261B31; Fri, 20 Jun 2014 12:02:37 +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 0DC5A2625D7; Fri, 20 Jun 2014 12:02:36 +0200 (CEST) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by alsa0.perex.cz (Postfix) with ESMTP id C6FE8261ABF for ; Fri, 20 Jun 2014 12:02:27 +0200 (CEST) Received: by mail-pb0-f53.google.com with SMTP id uo5so2925154pbc.26 for ; Fri, 20 Jun 2014 03:02:25 -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=rofpT7p8k/LqUQbRhqJKROjtpf8T+e/yN0BYp7Lmp0c=; b=nmlXWB95eLcOIyIHNRmOccgiPumVu8Anqe477MvBVQpz5j4rnBv8TIkQ/iFlzhQxBN W/9nEIQX2TTACUkzAcgrT7COGGeoBjsnJORv/7NgdNWCOAkQ0j1LDqZEifjrXJodbvZW niOJOQ+Ee7p1MrmYUnH80ieoYKalWz4ZwZyBN8AURwqUZfm3FwhSaKT74U+ISbL7E8PA h38pu4erPUwFYw4hn3a4lEl3+4HcKzKerTKLllsxSEWD3iPQdaCNneuFhrRNKk2wEtc6 1CIhWqxTyAKIncuRSy/o7okrMhZBSZ7IJYUHOesEM9bRxC92KEjQgbcc2zKWu6yHJ5r4 5ahA== X-Received: by 10.66.197.131 with SMTP id iu3mr3275817pac.102.1403258545427; Fri, 20 Jun 2014 03:02:25 -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.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Jun 2014 03:02:24 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Date: Fri, 20 Jun 2014 15:28:58 +0530 Message-Id: <1403258352-8210-2-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 02/16] ASoC: cs42l73: 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 Acked-by: Paul Handrigan --- sound/soc/codecs/cs42l73.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/codecs/cs42l73.c b/sound/soc/codecs/cs42l73.c index ae3717992d56..e3b601624794 100644 --- a/sound/soc/codecs/cs42l73.c +++ b/sound/soc/codecs/cs42l73.c @@ -1408,10 +1408,8 @@ static int cs42l73_i2c_probe(struct i2c_client *i2c_client, cs42l73 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs42l73_private), GFP_KERNEL); - if (!cs42l73) { - dev_err(&i2c_client->dev, "could not allocate codec\n"); + if (!cs42l73) return -ENOMEM; - } cs42l73->regmap = devm_regmap_init_i2c(i2c_client, &cs42l73_regmap); if (IS_ERR(cs42l73->regmap)) {