e1000e: Use memcpy to intialize registers
Use memcpy instead of memmove to initialize registers. The initial register templates and register table instances will never overlap. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
9eb525ee89
commit
a7539f9d74
@ -3511,9 +3511,9 @@ e1000e_core_reset(E1000ECore *core)
|
||||
e1000e_intrmgr_reset(core);
|
||||
|
||||
memset(core->phy, 0, sizeof core->phy);
|
||||
memmove(core->phy, e1000e_phy_reg_init, sizeof e1000e_phy_reg_init);
|
||||
memcpy(core->phy, e1000e_phy_reg_init, sizeof e1000e_phy_reg_init);
|
||||
memset(core->mac, 0, sizeof core->mac);
|
||||
memmove(core->mac, e1000e_mac_reg_init, sizeof e1000e_mac_reg_init);
|
||||
memcpy(core->mac, e1000e_mac_reg_init, sizeof e1000e_mac_reg_init);
|
||||
|
||||
core->rxbuf_min_shift = 1 + E1000_RING_DESC_LEN_SHIFT;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user