aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atl1c/atl1c_main.c
diff options
context:
space:
mode:
authorJie Yang <jie.yang@atheros.com>2009-10-28 01:31:19 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-28 01:31:19 -0400
commit678b77e265f6d66f1e68f3d095841c44ba5ab112 (patch)
treecea361f49a86e827af00dc33bfd3a71a24443df6 /drivers/net/atl1c/atl1c_main.c
parenta361c83cb4d7c8fe013d82a2f124175a7f276f30 (diff)
atl1c: duplicate atl1c_get_tpd
remove duplicate atl1c_get_tpd, it may cause hardware to send wrong packets. Signed-off-by: Jie Yang <jie.yang@atheros.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atl1c/atl1c_main.c')
-rw-r--r--drivers/net/atl1c/atl1c_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/atl1c/atl1c_main.c b/drivers/net/atl1c/atl1c_main.c
index 1372e9a99f5b..3b8801a39726 100644
--- a/drivers/net/atl1c/atl1c_main.c
+++ b/drivers/net/atl1c/atl1c_main.c
@@ -1981,8 +1981,6 @@ static void atl1c_tx_map(struct atl1c_adapter *adapter,
1981 else { 1981 else {
1982 use_tpd = atl1c_get_tpd(adapter, type); 1982 use_tpd = atl1c_get_tpd(adapter, type);
1983 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc)); 1983 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc));
1984 use_tpd = atl1c_get_tpd(adapter, type);
1985 memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc));
1986 } 1984 }
1987 buffer_info = atl1c_get_tx_buffer(adapter, use_tpd); 1985 buffer_info = atl1c_get_tx_buffer(adapter, use_tpd);
1988 buffer_info->length = buf_len - mapped_len; 1986 buffer_info->length = buf_len - mapped_len;