Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1252283pxf; Fri, 9 Apr 2021 04:04:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpI4x4kCmVe2tRFOAoRUU1NswivJQs0yDFFbV9CSoQ4EI02BkhkCKZW4VC0v05pBPkuxSS X-Received: by 2002:a17:907:2da7:: with SMTP id gt39mr15405399ejc.193.1617966282673; Fri, 09 Apr 2021 04:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617966282; cv=none; d=google.com; s=arc-20160816; b=YIR8tlHCrSp6hvRLyEwMZ33l2qnAodhy+6EF1uQvkWt4N2hAhmj0vsFYSJZmxoQIzG hi0CDUJyvz/ITr7ll0NZCQJ4hzyKCJ0Vm2YTvDTX+jtPX3Xi2YnqXOEnUQe+Sd3nMI3T HG5J11YnkDujaQQwKuID7u1FtXeGY6BgrZbwCSocKsUW7t/TW5k0D84Gpd89QhdDd5nO zhmnoo3d9CjYa4lUJFxr2a1xz1tu+sowqHMiZGODF1pOUJvv2iMFpXajaQJC4ncXmxoC M2yftfjxefYSuDQ+xWtmoPZhEBJJ6pw+2xShKBoF7QlWF/kb0BPY0iel9ERZda7AUlL3 1uaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=45EFaX63mr3WwkGulEJDRdjTC/23CDP2Pk59+0Sb5rY=; b=s0hf9Nudm0k4K3The63c9Nl8SVCUQkkYgC1FOrIbEnHqcoPBPpU9228c4Bw6XnalfH IikfumtzpLVYOI6k8JMQ1qMwqbXqKfqrrC2FA/0pIbhkhWW58G8lj71zpVSt0Qnpwbl6 5vvU99omTCqNXaq7GBn3t5APPwarHdwenfWxMcMcYPgus4jOAzVoE54rOIwYk4HF5vEQ 7P//mdGN4Jvy1ncFRi8DbNhI7PgqQwScW+R8opBUnI/CEHYxixMgqkCjGhIfWq87oeiY 7Sa0wKMd0gh8qPcRhj4vE85PkzuFQCZi8Wot2OmbvtFXz5NmY2v2XhFKDTn+0dgGgAvN I0Hg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cz23si1960288edb.378.2021.04.09.04.04.18; Fri, 09 Apr 2021 04:04:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233764AbhDILDJ (ORCPT + 99 others); Fri, 9 Apr 2021 07:03:09 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:16863 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233530AbhDILDH (ORCPT ); Fri, 9 Apr 2021 07:03:07 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FGwCW5kDRz9xkg; Fri, 9 Apr 2021 19:00:39 +0800 (CST) Received: from DESKTOP-EFRLNPK.china.huawei.com (10.174.176.196) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.498.0; Fri, 9 Apr 2021 19:02:47 +0800 From: Qiheng Lin To: , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Maxime Ripard , Chen-Yu Tsai , Philipp Zabel , Kuninori Morimoto , Randy Dunlap CC: , , , , Hulk Robot Subject: [PATCH -next] ASoC: sun4i-codec: remove redundant dev_err call in sun4i_codec_probe() Date: Fri, 9 Apr 2021 19:02:46 +0800 Message-ID: <20210409110246.96-1-linqiheng@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.176.196] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Qiheng Lin --- sound/soc/sunxi/sun4i-codec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 6c13cc84b3fb..00b73b7444b7 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -1706,10 +1706,8 @@ static int sun4i_codec_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); base = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(base)) { - dev_err(&pdev->dev, "Failed to map the registers\n"); + if (IS_ERR(base)) return PTR_ERR(base); - } quirks = of_device_get_match_data(&pdev->dev); if (quirks == NULL) {