Skip to contentSkip to conversation

freescale:Make the function ucc_geth_tx have a return type of void

PATCH New Nicholas Krause 1 participant 1 message Jul 7, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 freescale:Make the function ucc_geth_tx have a return type of void

This makes the function ucc_geth_tx have a return type of void now due to this particular function always completing without ever executing a non recoverable error.

---
 drivers/net/ethernet/freescale/ucc_geth.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/freescale/ucc_geth.c +1 -2
index 78ebd73..70f3045 100644
@@ -3226,7 +3226,7 @@ static int ucc_geth_rx(struct ucc_geth_private *ugeth, u8 rxQ, int rx_work_limit
 	return howmany;
 }
 
-static int ucc_geth_tx(struct net_device *dev, u8 txQ)
+static void ucc_geth_tx(struct net_device *dev, u8 txQ)
 {
 	/* Start from the next BD that should be filled */
 	struct ucc_geth_private *ugeth = netdev_priv(dev);
@@ -3269,7 +3269,6 @@ static int ucc_geth_tx(struct net_device *dev, u8 txQ)
 		bd_status = in_be32((u32 __iomem *)bd);
 	}
 	ugeth->confBd[txQ] = bd;
-	return 0;
 }
 
 static int ucc_geth_poll(struct napi_struct *napi, int budget)
Signature · 6 lines
2.1.4

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev