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:
f6f38e2
)
igb: Change memcpy to struct assignment
author
Carolyn Wyborny
<
[email protected]
>
Fri, 11 Apr 2014 02:20:44 +0000
(
02:20
+0000)
committer
Jeff Kirsher
<
[email protected]
>
Fri, 25 Apr 2014 00:41:17 +0000
(17:41 -0700)
This patch fixes issue found by updated coccicheck.
Signed-off-by: Carolyn Wyborny <
[email protected]
>
Tested-by: Aaron Brown <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/igb/igb_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/igb/igb_main.c
b/drivers/net/ethernet/intel/igb/igb_main.c
index 5e8c5cc3abc6391986999a97181bf279ed36099a..bfcda8a455f46cc99058faf1a8bd0c339e7300e2 100644
(file)
--- a/
drivers/net/ethernet/intel/igb/igb_main.c
+++ b/
drivers/net/ethernet/intel/igb/igb_main.c
@@
-6499,7
+6499,7
@@
static void igb_reuse_rx_page(struct igb_ring *rx_ring,
rx_ring->next_to_alloc = (nta < rx_ring->count) ? nta : 0;
/* transfer page from old buffer to new buffer */
-
memcpy(new_buff, old_buff, sizeof(struct igb_rx_buffer))
;
+
*new_buff = *old_buff
;
/* sync the buffer for use by the device */
dma_sync_single_range_for_device(rx_ring->dev, old_buff->dma,