Message ID | 1430414195-10913-1-git-send-email-srinivas.kandagatla@linaro.org |
---|---|
State | Accepted |
Commit | ce883ccfef043257a3d679d389444ea805006587 |
Headers | show
Return-Path: <patchwork-forward+bncBC27VH7PV4DBBA6HRGVAKGQEBVMHTHA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DB24E20553 for <linaro@patches.linaro.org>; Thu, 30 Apr 2015 17:16:52 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2sf16515561lbb.0 for <linaro@patches.linaro.org>; Thu, 30 Apr 2015 10:16:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=1tqW+YxQSguzRGhopfi9an0WprVuO9PqdMnqhV/yBnA=; b=QEa7R8MHxfeqQovb1ugD3MI5aBwn5PHO/OHWDGH/n6oR6lldTUdjHl61gFwJ0DvcSi 8UusB4Mxwjv2PaxUX+LvMuUi2rQ2vv2aBuwv46linEhx1reo0X0pRIniv2x+yW1/1x54 7TGjb6xa8x/EZH4Mi95x+YvoT6OISvzVziN6c2Vn5GuSEydlcKtcks357s7byvQwnqCN ZkiGtfxewn0adhaxCMJp/ZRWTcLKTMKKR3FWyqNGdcb4ZSQ55WlEEwEylDu86y1FCkfC jLtJL6Ym3+fAEZX/TgQqngtqXVUpX50qXnju/DjtffTZGMQHoua+XNe0aLbHAeDHxr7f fRLA== X-Gm-Message-State: ALoCoQnvWq3xUTTHqcjqJpu5pEKmUXt9XLW3oHxwMgMJufFrb3n/umYxhxct/2ldLITuidDN0fI/ X-Received: by 10.180.106.136 with SMTP id gu8mr2312634wib.6.1430414211687; Thu, 30 Apr 2015 10:16:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.7 with SMTP id m7ls415212laj.70.gmail; Thu, 30 Apr 2015 10:16:51 -0700 (PDT) X-Received: by 10.152.43.43 with SMTP id t11mr4659581lal.74.1430414211445; Thu, 30 Apr 2015 10:16:51 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id l6si2190461lbd.114.2015.04.30.10.16.50 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Apr 2015 10:16:50 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by layy10 with SMTP id y10so49498283lay.0 for <patchwork-forward@linaro.org>; Thu, 30 Apr 2015 10:16:50 -0700 (PDT) X-Received: by 10.152.4.72 with SMTP id i8mr4988018lai.32.1430414210846; Thu, 30 Apr 2015 10:16:50 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp3242354lbt; Thu, 30 Apr 2015 10:16:50 -0700 (PDT) X-Received: by 10.70.140.38 with SMTP id rd6mr10121115pdb.47.1430414209097; Thu, 30 Apr 2015 10:16:49 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ag7si4371359pad.120.2015.04.30.10.16.48; Thu, 30 Apr 2015 10:16:49 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752167AbbD3RQn (ORCPT <rfc822;tyler.baker@linaro.org> + 28 others); Thu, 30 Apr 2015 13:16:43 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:37702 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751807AbbD3RQk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 30 Apr 2015 13:16:40 -0400 Received: by widdi4 with SMTP id di4so25829332wid.0 for <linux-kernel@vger.kernel.org>; Thu, 30 Apr 2015 10:16:38 -0700 (PDT) X-Received: by 10.180.108.147 with SMTP id hk19mr7114217wib.51.1430414198934; Thu, 30 Apr 2015 10:16:38 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-98-219-188.as13285.net. [2.98.219.188]) by mx.google.com with ESMTPSA id ln8sm4159540wjc.18.2015.04.30.10.16.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Apr 2015 10:16:38 -0700 (PDT) From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> To: Patrick Lai <plai@codeaurora.org>, Mark Brown <broonie@kernel.org> Cc: Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>, Ian Campbell <ijc+devicetree@hellion.org.uk>, Kumar Gala <galak@codeaurora.org>, Banajit Goswami <bgoswami@codeaurora.org>, Kenneth Westfield <kwestfie@codeaurora.org>, Liam Girdwood <lgirdwood@gmail.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.de>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [RFC PATCH 01/14] ASoC: qcom: Remove redundant error check. Date: Thu, 30 Apr 2015 18:16:35 +0100 Message-Id: <1430414195-10913-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1430414148-10869-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1430414148-10869-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index 6698d05..1e284c6 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c @@ -380,10 +380,6 @@ static int lpass_cpu_platform_probe(struct platform_device *pdev) platform_set_drvdata(pdev, drvdata); res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lpass-lpaif"); - if (!res) { - dev_err(&pdev->dev, "%s() error getting resource\n", __func__); - return -ENODEV; - } drvdata->lpaif = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR((void const __force *)drvdata->lpaif)) {
This patch remove redundant check after request_resource as ioremap would do the check anyway. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> --- sound/soc/qcom/lpass-cpu.c | 4 ---- 1 file changed, 4 deletions(-)