Skip to content

Commit

Permalink
ptp: ptp_dte: 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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Ding Xiang authored and davem330 committed Jul 25, 2019
1 parent f2ad83a commit 37f7c66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/ptp/ptp_dte.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,8 @@ static int ptp_dte_probe(struct platform_device *pdev)

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
ptp_dte->regs = devm_ioremap_resource(dev, res);
if (IS_ERR(ptp_dte->regs)) {
dev_err(dev,
"%s: io remap failed\n", __func__);
if (IS_ERR(ptp_dte->regs))
return PTR_ERR(ptp_dte->regs);
}

spin_lock_init(&ptp_dte->lock);

Expand Down

0 comments on commit 37f7c66

Please sign in to comment.