summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDing Xiang <dingxiang@cmss.chinamobile.com>2019-07-23 11:54:05 +0300
committerDavid S. Miller <davem@davemloft.net>2019-07-25 21:37:40 +0300
commit37f7c66f4560b154cfa7a8d8f1902e222e38adba (patch)
treef0fa1bbd9e52475a68472d26cc2a267c917c1e92
parentf2ad83af32c32c47976ed4d37b2971cc6d2de1ad (diff)
downloadlinux-37f7c66f4560b154cfa7a8d8f1902e222e38adba.tar.xz
ptp: ptp_dte: remove redundant dev_err message
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: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/ptp/ptp_dte.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ptp/ptp_dte.c b/drivers/ptp/ptp_dte.c
index 5b6393e3ea27..0dcfdc806f57 100644
--- a/drivers/ptp/ptp_dte.c
+++ b/drivers/ptp/ptp_dte.c
@@ -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);