net: mtk_eth_soc: delete an unneeded variable
Subsystems (5)
PATCH 1/1 net: mtk_eth_soc: delete an unneeded variable
There is already an "int err" declared at the start of the function so re-use that instead of declaring a shadow err variable.
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/mediatek/mtk_eth_soc.c +0 -1
@@ -2211,7 +2211,6 @@ static int mtk_open(struct net_device *dev)/* we run 2 netdevs on the same dma ring so we only bring it up once */ if (!refcount_read (ð->dma_refcnt)) {u32 gdm_config =MTK_GDMA_TO_PDMA ; -int err; err =mtk_start_dma (eth);if (err)
Signature · 7 lines
2.20.1 _______________________________________________ Linux-mediatek mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-mediatek
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 7 lines · On Fri, 17 Dec 2021 10:07:35 +0300 you wrote:
There is already an "int err" declared at the start of the function so re-use that instead of declaring a shadow err variable.
Signed-off-by Dan Carpenter <[email protected]>--- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 - 1 file changed, 1 deletion(-)
Here is the summary with links:
- [net-next] net: mtk_eth_soc: delete an unneeded variable
https://git.kernel.org/netdev/net-next/c/ddfbe18da55c
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html