From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5ECE70 for ; Fri, 4 Jun 2021 10:00:02 +0000 (UTC) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4FxJ646CBDz1BHrv; Fri, 4 Jun 2021 17:55:08 +0800 (CST) Received: from dggemi758-chm.china.huawei.com (10.1.198.144) 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; Fri, 4 Jun 2021 17:59:48 +0800 Received: from huawei.com (10.175.101.6) by dggemi758-chm.china.huawei.com (10.1.198.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 4 Jun 2021 17:59:48 +0800 From: ChenXiaoSong To: , CC: , , , , , Subject: [PATCH -next] mailbox: sun6i-msgbox: Remove redundant dev_err call in sun6i_msgbox_probe() Date: Fri, 4 Jun 2021 18:06:11 +0800 Message-ID: <20210604100611.3653738-1-chenxiaosong2@huawei.com> X-Mailer: git-send-email 2.25.4 X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggemi758-chm.china.huawei.com (10.1.198.144) X-CFilter-Loop: Reflected 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: ChenXiaoSong --- drivers/mailbox/sun6i-msgbox.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mailbox/sun6i-msgbox.c b/drivers/mailbox/sun6i-msgbox.c index ccecf2e5941d..e357236c7dd1 100644 --- a/drivers/mailbox/sun6i-msgbox.c +++ b/drivers/mailbox/sun6i-msgbox.c @@ -255,7 +255,6 @@ static int sun6i_msgbox_probe(struct platform_device *pdev) mbox->regs = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(mbox->regs)) { ret = PTR_ERR(mbox->regs); - dev_err(dev, "Failed to map MMIO resource: %d\n", ret); goto err_disable_unprepare; } -- 2.25.4