ixgbe: Remove unnecessary usages of memset
Replace memsets of 1 byte with simple assignment. Issue found with checkpatch.pl Signed-off-by: Suraj Upadhyay <usuraj35@gmail.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
Родитель
90105264a6
Коммит
7ba068d128
|
@ -1951,8 +1951,8 @@ static void ixgbe_create_lbtest_frame(struct sk_buff *skb,
|
|||
memset(skb->data, 0xFF, frame_size);
|
||||
frame_size >>= 1;
|
||||
memset(&skb->data[frame_size], 0xAA, frame_size / 2 - 1);
|
||||
memset(&skb->data[frame_size + 10], 0xBE, 1);
|
||||
memset(&skb->data[frame_size + 12], 0xAF, 1);
|
||||
skb->data[frame_size + 10] = 0xBE;
|
||||
skb->data[frame_size + 12] = 0xAF;
|
||||
}
|
||||
|
||||
static bool ixgbe_check_lbtest_frame(struct ixgbe_rx_buffer *rx_buffer,
|
||||
|
|
Загрузка…
Ссылка в новой задаче