projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a361c83
)
atl1c: duplicate atl1c_get_tpd
author
Jie Yang
<jie.yang@atheros.com>
Wed, 28 Oct 2009 05:31:19 +0000
(22:31 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 28 Oct 2009 05:31:19 +0000
(22:31 -0700)
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>
drivers/net/atl1c/atl1c_main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/atl1c/atl1c_main.c
b/drivers/net/atl1c/atl1c_main.c
index 1372e9a99f5b29eb8e92aefc39404234977ceae0..3b8801a39726e8318035de039c98daff906e948b 100644
(file)
--- 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,
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;