Skip to contentSkip to conversation

atl1c: duplicate atl1c_get_tpd

PATCH Applied [email protected] 2 participants 2 messages Oct 28, 2009

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

PATCH 1/1 atl1c: duplicate atl1c_get_tpd

From: Jie Yang <[email protected]>

remove duplicate atl1c_get_tpd, it may cause hardware to send wrong packets.

---

 drivers/net/atl1c/atl1c_main.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/net/atl1c/atl1c_main.c +0 -2
index 1372e9a..3b8801a 100644
@@ -1981,8 +1981,6 @@ static void atl1c_tx_map(struct atl1c_adapter *adapter,
 		else {
 			use_tpd = atl1c_get_tpd(adapter, type);
 			memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc));
-			use_tpd = atl1c_get_tpd(adapter, type);
-			memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc));
 		}
 		buffer_info = atl1c_get_tx_buffer(adapter, use_tpd);
 		buffer_info->length = buf_len - mapped_len;