From patchwork Mon Jul 4 15:08:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: weiyj_lk@163.com X-Patchwork-Id: 9212883 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3438D60572 for ; Mon, 4 Jul 2016 15:32:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2485228713 for ; Mon, 4 Jul 2016 15:32:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 192EE2873E; Mon, 4 Jul 2016 15:32:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B03E28713 for ; Mon, 4 Jul 2016 15:32:43 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 31FFB266C62; Mon, 4 Jul 2016 17:32:42 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 66A8126661B; Mon, 4 Jul 2016 17:25:46 +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 E878226661B; Mon, 4 Jul 2016 17:25:44 +0200 (CEST) Received: from m12-13.163.com (m12-13.163.com [220.181.12.13]) by alsa0.perex.cz (Postfix) with ESMTP id 8B79A2668BE for ; Mon, 4 Jul 2016 17:08:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=oz2sJ Y4GsjqYOJeCcrTwryWRBCmb1JbrRG2HEPBE3YU=; b=jawnfE1oUP+jK5YuPYH89 /TUuZ4N7w1lo4s3Wk8Bgx64sSP5C3GIiMRMTr1EN+JLKb3xdLR2oeqsFBNawpNhX bwnfEcn5eAI2TIU+DJ40RUjlF2v3/WMARsmXZZdOo0EL3ke49u03+m3Qxo+kKGBL umTFeurpq8Uwf+RyL6JWUM= Received: from localhost.localdomain.localdomain (unknown [49.77.206.194]) by smtp9 (Coremail) with SMTP id DcCowADX3YnXe3pXKQ0eAQ--.620S2; Mon, 04 Jul 2016 23:08:08 +0800 (CST) From: weiyj_lk@163.com To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Maxime Ripard , Chen-Yu Tsai Date: Mon, 4 Jul 2016 15:08:07 +0000 Message-Id: <1467644887-10796-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CM-TRANSID: DcCowADX3YnXe3pXKQ0eAQ--.620S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Wr4kCw4kuF47tr4DGr45Jrb_yoWfAFb_J3 yDCws5Xryrtr9rKF98Zr43Ar4ftrs2kry8Gr17tFy7t34UJw1rur4DAryxCr1UX3ykKrZY 9wn0qrsIk34ayjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUncdbUUUUUU== X-Originating-IP: [49.77.206.194] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/xtbByhic1lO+kVi0eQAAsx Cc: Wei Yongjun , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH -next] ASoC: sunxi: remove redundant dev_err call in sun4i_i2s_probe() 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- sound/soc/sunxi/sun4i-i2s.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index fab5234..687a8f8 100644 --- a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -599,10 +599,8 @@ static int sun4i_i2s_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); regs = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(regs)) { - dev_err(&pdev->dev, "Can't request IO region\n"); + if (IS_ERR(regs)) return PTR_ERR(regs); - } irq = platform_get_irq(pdev, 0); if (irq < 0) {