mtd: rawnand: hisi504: Remove redundant dev_err call in probe
authorWei Li <liwei391@huawei.com>
Wed, 7 Apr 2021 10:05:26 +0000 (18:05 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 10 May 2021 08:34:23 +0000 (10:34 +0200)
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 <hulkci@huawei.com>
Signed-off-by: Wei Li <liwei391@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210407100526.3278741-1-liwei391@huawei.com
drivers/mtd/nand/raw/hisi504_nand.c

index 8b2122ce6ec359461fa59ef024f98168f1522ec0..78c4e05434e2bdf45d48266e342e16be3c0046f3 100644 (file)
@@ -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;