projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69d707d
)
net: netcp: remove the redundant memmov()
author
Karicheri, Muralidharan
<
[email protected]
>
Fri, 6 Jan 2017 20:37:40 +0000
(15:37 -0500)
committer
David S. Miller
<
[email protected]
>
Sun, 8 Jan 2017 02:03:50 +0000
(21:03 -0500)
The psdata is populated with command data by netcp modules
to the tail of the buffer and set_words() copy the same
to the front of the psdata. So remove the redundant memmov
function call.
Signed-off-by: Murali Karicheri <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/ti/netcp_core.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/netcp_core.c
b/drivers/net/ethernet/ti/netcp_core.c
index a136c56e0aff2e19611876fe8f2679881f9d1239..286fd8da3b67d6be72a8e4e7b531a8b7d05377be 100644
(file)
--- a/
drivers/net/ethernet/ti/netcp_core.c
+++ b/
drivers/net/ethernet/ti/netcp_core.c
@@
-1226,9
+1226,9
@@
static int netcp_tx_submit_skb(struct netcp_intf *netcp,
/* psdata points to both native-endian and device-endian data */
__le32 *psdata = (void __force *)p_info.psdata;
- memmove(p_info.psdata, p_info.psdata + p_info.psdata_len,
- p_info.psdata_len);
-
set_words(p_info.psdata,
p_info.psdata_len, psdata);
+ set_words((u32 *)psdata +
+ (KNAV_DMA_NUM_PS_WORDS - p_info.psdata_len),
+
p_info.psdata_len, psdata);
tmp |= (p_info.psdata_len & KNAV_DMA_DESC_PSLEN_MASK) <<
KNAV_DMA_DESC_PSLEN_SHIFT;
}