Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3279319pxj; Tue, 1 Jun 2021 01:23:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymoFcAlRioYQe4ied7PmXD9QOceb5GzvfQUkWV5qo0pv2eJ9Ugmzz5yr1X0p85BGoy74db X-Received: by 2002:a17:906:488a:: with SMTP id v10mr20220571ejq.383.1622535787385; Tue, 01 Jun 2021 01:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622535787; cv=none; d=google.com; s=arc-20160816; b=V0RPL9jhJNlkBorxQOXhIPPcjafg7QXDhC4elniV25xFESaeJUBAPLd2oZNbW6Eq4z 1k27RpfZLYE6IoRDr2pAFEfbXjX6Z9wfuDx7rTrgMYx1obnbG9xIZV/dqtN7CcUEhmpV JYgKrv1B9e5jczmDAQEjLMNjsm7gjlFA/NWP2RX+IdgdxSnzKoi/C83laqLdWYY98/db xEcO8RaRGbsmupWypVYA3XW2j53FHpBG8Ffrmiy7512Rm0yNrEVE5EOrfXwlriPrpSCk LTyHkecrdAHAjsry2QlMr6rRo1CXfN3URZO15w0jf5qTcrTq/WZ9y6Ers4ppEzStOk34 2GlQ== 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=elR0AHEHOnYqHC6DNjdXsMBdoVadmH6fj1qDLvz1IUE=; b=XKj2s70IPoYSmYVhRaQjsxb6YSlTMfYKbX90pclSWBcDx4T76j4O1keBROZZ96C6i0 bmB3g4DOMBWok/Q/0+vP8QKT2gicr+lUFNP4zMoTQgw56SjfFl8DaschGt1GPf6U3/yk EjWyv2ZB7IXy5gJO49acmpE+GMKj9jTdN4shX2bAon1AjkHfMZAjlFx5UF5xYXc7LlrQ I5gvr2oFm6uETcgWF81Diumm79L0q0l7rb41W/uqaPGm/zMCtBzRrGP5yiP+8ZbWF3tx t54ns3vWwdWmiQLoXdZ3l0XdayarzejATN4KO/YcGfGSawlSEifWcCl+1ug60tf0RH0G 1xOQ== 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 a92si11767270edf.232.2021.06.01.01.22.45; Tue, 01 Jun 2021 01:23:07 -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 S233319AbhFAIX1 (ORCPT + 99 others); Tue, 1 Jun 2021 04:23:27 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:2817 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233490AbhFAIXY (ORCPT ); Tue, 1 Jun 2021 04:23:24 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FvQ4D3SldzWqLq; Tue, 1 Jun 2021 16:17:00 +0800 (CST) Received: from dggema761-chm.china.huawei.com (10.1.198.203) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 1 Jun 2021 16:21:42 +0800 Received: from huawei.com (10.175.127.227) by dggema761-chm.china.huawei.com (10.1.198.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 1 Jun 2021 16:21:41 +0800 From: Zhihao Cheng To: , , CC: , , , Subject: [PATCH] remoteproc: pru: Remove redundant dev_err call in pru_rproc_probe() Date: Tue, 1 Jun 2021 16:31:00 +0800 Message-ID: <20210601083100.130776-1-chengzhihao1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggema761-chm.china.huawei.com (10.1.198.203) 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: Zhihao Cheng --- drivers/remoteproc/pru_rproc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c index e5778e476245..6491c731c6e2 100644 --- a/drivers/remoteproc/pru_rproc.c +++ b/drivers/remoteproc/pru_rproc.c @@ -822,8 +822,6 @@ static int pru_rproc_probe(struct platform_device *pdev) mem_names[i]); pru->mem_regions[i].va = devm_ioremap_resource(dev, res); if (IS_ERR(pru->mem_regions[i].va)) { - dev_err(dev, "failed to parse and map memory resource %d %s\n", - i, mem_names[i]); ret = PTR_ERR(pru->mem_regions[i].va); return ret; } -- 2.31.1