From patchwork Fri Jun 20 09:59:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 4387791 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 C2E3EBEEAA for ; Fri, 20 Jun 2014 10:11:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 076A1203AF for ; Fri, 20 Jun 2014 10:11:55 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id C364220259 for ; Fri, 20 Jun 2014 10:11:53 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D9205265542; Fri, 20 Jun 2014 12:11:52 +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 6B517265054; Fri, 20 Jun 2014 12:05:29 +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 04296265054; Fri, 20 Jun 2014 12:05:28 +0200 (CEST) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by alsa0.perex.cz (Postfix) with ESMTP id 5C880264FFF for ; Fri, 20 Jun 2014 12:02:57 +0200 (CEST) Received: by mail-pa0-f51.google.com with SMTP id hz1so2933136pad.24 for ; Fri, 20 Jun 2014 03:02:56 -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=dMnaXR8d0w+bqCx+aWlMe4tNiiB8/IO6P3NtOm/98bI=; b=kdCW2z8h+mys4+A93ZWD4CfAeF9yR+ZecjnywsIg+INf8DtcX1GSpnylZVY30fpY3n qtxRj0HPrZeMgTwTb/wn71sOqPOImN/l+HSRr2RjN6Kh78k4mIdrG5AuPjS0hTHlv31T /aYspF8jOpSiX23FlfZ0dcaaAcs7OzuzuD0jhXc0xMX5kR6POQFJxgpQ9WKp/lOOn+me caTLVSM7wKSEYypeGAtiAvOycJdcBCQeZb9jQtz8xJO3CtFophVLOAaK0GbIMGofWGFH XoV1qNLIGJVaLpS9gVXu59ut73cEzwErqJ2p/VJyIlFf7SpY11vFrOa3MtarmrXQetcD mWYA== X-Received: by 10.68.225.105 with SMTP id rj9mr3221508pbc.108.1403258576263; Fri, 20 Jun 2014 03:02:56 -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.53 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Jun 2014 03:02:55 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Date: Fri, 20 Jun 2014 15:29:07 +0530 Message-Id: <1403258352-8210-11-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 11/16] ASoC: wm2000: 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: Charles Keepax --- sound/soc/codecs/wm2000.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c index a4c352cc3464..34ef65c52a7d 100644 --- a/sound/soc/codecs/wm2000.c +++ b/sound/soc/codecs/wm2000.c @@ -826,10 +826,8 @@ static int wm2000_i2c_probe(struct i2c_client *i2c, wm2000 = devm_kzalloc(&i2c->dev, sizeof(struct wm2000_priv), GFP_KERNEL); - if (wm2000 == NULL) { - dev_err(&i2c->dev, "Unable to allocate private data\n"); + if (!wm2000) return -ENOMEM; - } mutex_init(&wm2000->lock);