All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: ftgmac100: Fix unused assignment
@ 2020-04-30 12:11 Tang Bin
  2020-04-30 19:20 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Tang Bin @ 2020-04-30 12:11 UTC (permalink / raw)
  To: davem, benh, andrew, hkallweit1
  Cc: netdev, linux-kernel, Tang Bin, Zhang Shengju

Delete unused initialized value in ftgmac100.c file.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
---
 drivers/net/ethernet/faraday/ftgmac100.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c
index 4572797f0..a00cbdf3a 100644
--- a/drivers/net/ethernet/faraday/ftgmac100.c
+++ b/drivers/net/ethernet/faraday/ftgmac100.c
@@ -1354,7 +1354,7 @@ static int ftgmac100_poll(struct napi_struct *napi, int budget)
 
 static int ftgmac100_init_all(struct ftgmac100 *priv, bool ignore_alloc_err)
 {
-	int err = 0;
+	int err;
 
 	/* Re-init descriptors (adjust queue sizes) */
 	ftgmac100_init_rings(priv);
@@ -1605,7 +1605,7 @@ static int ftgmac100_setup_mdio(struct net_device *netdev)
 	struct platform_device *pdev = to_platform_device(priv->dev);
 	phy_interface_t phy_intf = PHY_INTERFACE_MODE_RGMII;
 	struct device_node *np = pdev->dev.of_node;
-	int i, err = 0;
+	int i, err;
 	u32 reg;
 
 	/* initialize mdio bus */
@@ -1755,7 +1755,7 @@ static int ftgmac100_probe(struct platform_device *pdev)
 	struct net_device *netdev;
 	struct ftgmac100 *priv;
 	struct device_node *np;
-	int err = 0;
+	int err;
 
 	if (!pdev)
 		return -ENODEV;
-- 
2.20.1.windows.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: ftgmac100: Fix unused assignment
  2020-04-30 12:11 [PATCH] net: ftgmac100: Fix unused assignment Tang Bin
@ 2020-04-30 19:20 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-04-30 19:20 UTC (permalink / raw)
  To: tangbin; +Cc: benh, andrew, hkallweit1, netdev, linux-kernel, zhangshengju

From: Tang Bin <tangbin@cmss.chinamobile.com>
Date: Thu, 30 Apr 2020 20:11:23 +0800

> Delete unused initialized value in ftgmac100.c file.
> 
> Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
> Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>

This does not apply to the current networking trees.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-30 19:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 12:11 [PATCH] net: ftgmac100: Fix unused assignment Tang Bin
2020-04-30 19:20 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.