[PATCH 3/4] ec_bhf: rx_desc vs tx_desc confusion.

From: Francois Romieu
Date: Sat May 03 2014 - 05:36:12 EST


Signed-off-by: Francois Romieu <romieu@xxxxxxxxxxxxx>
---
drivers/net/ethernet/ec_bhf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/ec_bhf.c b/drivers/net/ethernet/ec_bhf.c
index d33b691..c697b48 100644
--- a/drivers/net/ethernet/ec_bhf.c
+++ b/drivers/net/ethernet/ec_bhf.c
@@ -453,7 +453,7 @@ static void ec_bhf_setup_tx_descs(struct ec_bhf_priv *priv)
INIT_LIST_HEAD(&priv->tx_desc_free);
INIT_LIST_HEAD(&priv->tx_desc_queue);

- dcount = priv->tx_buf.len / sizeof(struct rx_desc);
+ dcount = priv->tx_buf.len / sizeof(struct tx_desc);
for (i = 0; i < dcount; i++) {
struct tx_desc *desc = descs + i;
list_add_tail(&desc->node, &priv->tx_desc_free);
--
1.9.0


--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="0004-ec_bhf-use-once-variable-removal.patch"