Commit 653de988 authored by Haoyue Xu's avatar Haoyue Xu Committed by Jakub Kicinski

net: ll_temac: Cleanup for function name in a string

As Checkpatch.pl warns, prefer using '"%s...", __func__'
to using 'temac_device_reset', this function's name, in a string.
Signed-off-by: default avatarHaoyue Xu <xuhaoyue1@hisilicon.com>
Reviewed-by: default avatarHarini Katakam <harini.katakam@amd.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 75124116
...@@ -642,7 +642,7 @@ static void temac_device_reset(struct net_device *ndev) ...@@ -642,7 +642,7 @@ static void temac_device_reset(struct net_device *ndev)
udelay(1); udelay(1);
if (--timeout == 0) { if (--timeout == 0) {
dev_err(&ndev->dev, dev_err(&ndev->dev,
"temac_device_reset RX reset timeout!!\n"); "%s RX reset timeout!!\n", __func__);
break; break;
} }
} }
...@@ -654,7 +654,7 @@ static void temac_device_reset(struct net_device *ndev) ...@@ -654,7 +654,7 @@ static void temac_device_reset(struct net_device *ndev)
udelay(1); udelay(1);
if (--timeout == 0) { if (--timeout == 0) {
dev_err(&ndev->dev, dev_err(&ndev->dev,
"temac_device_reset TX reset timeout!!\n"); "%s TX reset timeout!!\n", __func__);
break; break;
} }
} }
...@@ -673,7 +673,7 @@ static void temac_device_reset(struct net_device *ndev) ...@@ -673,7 +673,7 @@ static void temac_device_reset(struct net_device *ndev)
udelay(1); udelay(1);
if (--timeout == 0) { if (--timeout == 0) {
dev_err(&ndev->dev, dev_err(&ndev->dev,
"temac_device_reset DMA reset timeout!!\n"); "%s DMA reset timeout!!\n", __func__);
break; break;
} }
} }
...@@ -681,7 +681,8 @@ static void temac_device_reset(struct net_device *ndev) ...@@ -681,7 +681,8 @@ static void temac_device_reset(struct net_device *ndev)
if (temac_dma_bd_init(ndev)) { if (temac_dma_bd_init(ndev)) {
dev_err(&ndev->dev, dev_err(&ndev->dev,
"temac_device_reset descriptor allocation failed\n"); "%s descriptor allocation failed\n", __func__);
} }
spin_lock_irqsave(lp->indirect_lock, flags); spin_lock_irqsave(lp->indirect_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment