From patchwork Fri Jun 20 09:58:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 4387661 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 F265E9F314 for ; Fri, 20 Jun 2014 10:02:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 43882203AF for ; Fri, 20 Jun 2014 10:02:46 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 139312039D for ; Fri, 20 Jun 2014 10:02:45 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9274F264FFB; Fri, 20 Jun 2014 12:02:42 +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 6E46D261A95; Fri, 20 Jun 2014 12:02:35 +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 BEA38261B19; Fri, 20 Jun 2014 12:02:33 +0200 (CEST) Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by alsa0.perex.cz (Postfix) with ESMTP id 82D20261A68 for ; Fri, 20 Jun 2014 12:02:25 +0200 (CEST) Received: by mail-pd0-f173.google.com with SMTP id r10so2810473pdi.18 for ; Fri, 20 Jun 2014 03:02:23 -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; bh=sY3YOeYWfO4zqxLRH/Kt3kogWOX+M7f3/U3ajeAAiGo=; b=M5anYUWP3TECHxiy11nqVe5vq9mcfdrGQXAexo5B/R1TAO1smQcXbDgTv+R9m/vTo7 Hz6txIcdvm5JGOP9AZYj5Dj+S3YkZTzexoSj3IQpTap5UnggpydSt6EfRnmgkp3k1V1+ i3ZfcryIR/W3S8GUBMURrmWH3yA4KuxbHYCMTXdd39XC4RKlFW6vgaHaV7rKrxBsK6bl EY4/nwRx3LPuAeXPWARQgaodzN1KVZg5FC0t88yznmMxeSpTD2h/nvi1vKbbyV7dz2W6 Y4lkl4jNr4p/j8Y0iq0BpVkZ4SLdcuiHkkk7tOxoQDc2EztfmawG1RLxr58/LZk+nCyl ZBwA== X-Received: by 10.66.66.166 with SMTP id g6mr3214911pat.108.1403258541812; Fri, 20 Jun 2014 03:02:21 -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.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Jun 2014 03:02:20 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Date: Fri, 20 Jun 2014 15:28:57 +0530 Message-Id: <1403258352-8210-1-git-send-email-sachin.kamat@samsung.com> X-Mailer: git-send-email 1.7.9.5 Cc: broonie@kernel.org, spk.linux@gmail.com, lgirdwood@gmail.com Subject: [alsa-devel] [PATCH 01/16] ASoC: cs4270: 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/cs4270.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c index 9947a9583679..e6d4ff9fd992 100644 --- a/sound/soc/codecs/cs4270.c +++ b/sound/soc/codecs/cs4270.c @@ -664,10 +664,8 @@ static int cs4270_i2c_probe(struct i2c_client *i2c_client, cs4270 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs4270_private), GFP_KERNEL); - if (!cs4270) { - dev_err(&i2c_client->dev, "could not allocate codec\n"); + if (!cs4270) return -ENOMEM; - } /* get the power supply regulators */ for (i = 0; i < ARRAY_SIZE(supply_names); i++)