mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-01 19:34:35 +08:00
ice: replace unnecessary memcpy with direct assignment
Direct assignment is preferred over a memcpy() Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
c913b73cd0
commit
95a525bee0
@ -850,7 +850,7 @@ ice_sq_send_cmd(struct ice_hw *hw, struct ice_ctl_q_info *cq,
|
||||
|
||||
details = ICE_CTL_Q_DETAILS(cq->sq, cq->sq.next_to_use);
|
||||
if (cd)
|
||||
memcpy(details, cd, sizeof(*details));
|
||||
*details = *cd;
|
||||
else
|
||||
memset(details, 0, sizeof(*details));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user