mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
e1000e: Remove unnecessary usages of memset
Replace memsets of 1 byte with simple assignments. Issue found with checkpatch.pl Signed-off-by: Suraj Upadhyay <usuraj35@gmail.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
4b6bafb9e1
commit
c5b369651b
1 changed files with 2 additions and 2 deletions
|
@ -1608,8 +1608,8 @@ static void e1000_create_lbtest_frame(struct sk_buff *skb,
|
|||
memset(skb->data, 0xFF, frame_size);
|
||||
frame_size &= ~1;
|
||||
memset(&skb->data[frame_size / 2], 0xAA, frame_size / 2 - 1);
|
||||
memset(&skb->data[frame_size / 2 + 10], 0xBE, 1);
|
||||
memset(&skb->data[frame_size / 2 + 12], 0xAF, 1);
|
||||
skb->data[frame_size / 2 + 10] = 0xBE;
|
||||
skb->data[frame_size / 2 + 12] = 0xAF;
|
||||
}
|
||||
|
||||
static int e1000_check_lbtest_frame(struct sk_buff *skb,
|
||||
|
|
Loading…
Reference in a new issue