Commit 95a525be authored by Bruce Allan's avatar Bruce Allan Committed by Jeff Kirsher

ice: replace unnecessary memcpy with direct assignment

Direct assignment is preferred over a memcpy()
Signed-off-by: default avatarBruce Allan <bruce.w.allan@intel.com>
Signed-off-by: default avatarAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent c913b73c
...@@ -850,7 +850,7 @@ ice_sq_send_cmd(struct ice_hw *hw, struct ice_ctl_q_info *cq, ...@@ -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); details = ICE_CTL_Q_DETAILS(cq->sq, cq->sq.next_to_use);
if (cd) if (cd)
memcpy(details, cd, sizeof(*details)); *details = *cd;
else else
memset(details, 0, sizeof(*details)); memset(details, 0, sizeof(*details));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment