mtd: rawnand: Remove redundant dev_err call in hisi_nfc_probe()
Subsystems (3)
PATCH RESEND 1/1 mtd: rawnand: Remove redundant dev_err call in hisi_nfc_probe()
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 <[email protected]>
Signed-off-by Wei Li <[email protected]>
--- drivers/mtd/nand/raw/hisi504_nand.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/mtd/nand/raw/hisi504_nand.c +1 -3
@@ -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;
Quoted 6 lines · Wei Li
There is a error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.Reported-by Hulk Robot <[email protected]>Signed-off-by Wei Li <[email protected]>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel