Skip to content

Commit

Permalink
fpga: remove redundant dev_err message
Browse files Browse the repository at this point in the history
devm_ioremap_resource already contains error message, so remove
the redundant dev_err message

Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
  • Loading branch information
Ding Xiang authored and Moritz Fischer committed Jan 3, 2020
1 parent 9bc6597 commit 1d39387
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/fpga/ts73xx-fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,8 @@ static int ts73xx_fpga_probe(struct platform_device *pdev)

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
priv->io_base = devm_ioremap_resource(kdev, res);
if (IS_ERR(priv->io_base)) {
dev_err(kdev, "unable to remap registers\n");
if (IS_ERR(priv->io_base))
return PTR_ERR(priv->io_base);
}

mgr = devm_fpga_mgr_create(kdev, "TS-73xx FPGA Manager",
&ts73xx_fpga_ops, priv);
Expand Down

0 comments on commit 1d39387

Please sign in to comment.