Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp868933pxf; Wed, 7 Apr 2021 13:44:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk5VL2Q7kg7woV/Zw2w9ZkQMjo7YhdrUQcRPOTKgprOVksPj00BuYQf8FN0l+DZFHEmk7C X-Received: by 2002:a6b:7808:: with SMTP id j8mr4009316iom.118.1617828274143; Wed, 07 Apr 2021 13:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617828274; cv=none; d=google.com; s=arc-20160816; b=Hq5vh4oxZ9Kc0GBFdm7XYFI6uVP3dBZhxWwk1ICxkt+kYS09L6Dldbmfmlxy9TDpyF KtgexUepntBYZmqQCuLQ5yAXWoHMbyvc5si6bqHLJzosWott6+ceow+aedqCDXydzlJo OotK5TBH0+bNhZY73I1Cgc1Mp+zABirCqHgzj0HGnxkN8FXICIb56vg9h3mOdmCBlKq+ +Hip4rmKBDL3y5z33iVv7NQLlQi2Uq+m9svYdUskikETrGd4MVqvjnDHPTXWoWDDypmr AW967yj7hCnVYf8p9Ps1xjZXdbSGr7vzWF9Cvwr69oDmtAq8BU5vVOtRYS2qYUy2+sJ+ 1HoA== 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=zaUJJ6HIS4BA1t+KW13d4xfg3uyXooMF/uOd9ER4hVE=; b=bgiW3P5orWpHPzkS6k+t4ONCi4r7SF6vJauo9M0XFay9KmXAEnsBbQvWZ3oUThX+60 rVjeCpF92Nk7hqipmK/iO3ZI4KprgMmvXR3qf4DU6XfBuZ7sfZlpzqTD4J+TwqdGmgrO EVj9fVUSqpON2jNC34elJZB+IHINww4XWEKt6M+cEMUyQf5JYyOIH/NxcmmCdEgqptV5 PSnoI1Ak9HAzS20k2gKVGr1iT0BXcoWpNsUQTWHLuUuEV2p7RbMa1I2F4p5d9GwSW8UX rEWgF002DHt40OCgtaM/4iIjx+SBxSss3g8TcUN5Q3oPVtvKxHKe/buzJhdme9YDKoDl b6uQ== 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 g15si13519070ilf.145.2021.04.07.13.44.21; Wed, 07 Apr 2021 13:44:34 -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 S1350522AbhDGKDr (ORCPT + 99 others); Wed, 7 Apr 2021 06:03:47 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:16378 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346384AbhDGKCc (ORCPT ); Wed, 7 Apr 2021 06:02:32 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FFfz22YkhzjYZ1; Wed, 7 Apr 2021 18:00:30 +0800 (CST) Received: from localhost.localdomain (10.175.103.91) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Wed, 7 Apr 2021 18:02:10 +0800 From: Wei Li To: , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Boris Brezillon CC: , , , Hulk Robot , Wei Li Subject: [PATCH RESEND -next] mtd: rawnand: Remove redundant dev_err call in hisi_nfc_probe() Date: Wed, 7 Apr 2021 18:05:26 +0800 Message-ID: <20210407100526.3278741-1-liwei391@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.103.91] 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: Wei Li --- drivers/mtd/nand/raw/hisi504_nand.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mtd/nand/raw/hisi504_nand.c b/drivers/mtd/nand/raw/hisi504_nand.c index 8b2122ce6ec3..78c4e05434e2 100644 --- a/drivers/mtd/nand/raw/hisi504_nand.c +++ b/drivers/mtd/nand/raw/hisi504_nand.c @@ -761,10 +761,8 @@ static int hisi_nfc_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 1); host->mmio = devm_ioremap_resource(dev, res); - if (IS_ERR(host->mmio)) { - dev_err(dev, "devm_ioremap_resource[1] fail\n"); + if (IS_ERR(host->mmio)) return PTR_ERR(host->mmio); - } mtd->name = "hisi_nand"; mtd->dev.parent = &pdev->dev;