mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 07:02:23 +00:00
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>
This commit is contained in:
parent
a361c83cb4
commit
678b77e265
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user