From patchwork Fri Jun 20 09:59:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 4387751 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A223C9F314 for ; Fri, 20 Jun 2014 10:08:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E1483203AF for ; Fri, 20 Jun 2014 10:08:51 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id C15CE2037F for ; Fri, 20 Jun 2014 10:08:50 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D6C40265132; Fri, 20 Jun 2014 12:08:48 +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, 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 D77292651AC; Fri, 20 Jun 2014 12:05:16 +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 B00C62651A8; Fri, 20 Jun 2014 12:05:15 +0200 (CEST) Received: from mail-pb0-f51.google.com (mail-pb0-f51.google.com [209.85.160.51]) by alsa0.perex.cz (Postfix) with ESMTP id 4C8FB264F8F for ; Fri, 20 Jun 2014 12:02:40 +0200 (CEST) Received: by mail-pb0-f51.google.com with SMTP id rp16so2953806pbb.38 for ; Fri, 20 Jun 2014 03:02:39 -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=4YBWA7hJnnV6Pf9Gd0ZUeOEhshXin424d7cuV13am4c=; b=YN1FpJxeAYfuNUmAtSrpqUYeBINdq9Kd77SwuYkIFDnABw4ZcklHEAEzCbWaqy1zNA GSXQRe6ATLGNdhKL0/BXv6k3tf47g5coKaBwwji2xYYsxsQ5Lgm1MjLcveqp1a5olI5n EKj2Z2JjMfQpmx4oOgHplxzGqQRpy2wov/LrEgccvKaq3MIvroZNqn1YEF5juk7sEFr0 Syi3RLAn2lybgYlGtm/b/HML05A0fI0W+0A7PnV5HwHQ6jqjG01vc7x53UOUysOrLIeU U5UEqnxWR3oSykCmGpDeZhWG8RR3D02apjHLFoi5ODNAxKiNpzAIFcYJoB+l3DgcgBd4 7y3A== X-Received: by 10.66.142.135 with SMTP id rw7mr3227170pab.71.1403258559132; Fri, 20 Jun 2014 03:02:39 -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.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Jun 2014 03:02:38 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Date: Fri, 20 Jun 2014 15:29:02 +0530 Message-Id: <1403258352-8210-6-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 06/16] ASoC: tpa6130a2: 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/tpa6130a2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c index 8fc5a647453b..6fac9e034c48 100644 --- a/sound/soc/codecs/tpa6130a2.c +++ b/sound/soc/codecs/tpa6130a2.c @@ -381,10 +381,8 @@ static int tpa6130a2_probe(struct i2c_client *client, dev = &client->dev; data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL); - if (data == NULL) { - dev_err(dev, "Can not allocate memory\n"); + if (!data) return -ENOMEM; - } if (pdata) { data->power_gpio = pdata->power_gpio;