diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-12-01 22:01:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-03 18:10:02 +0300 |
commit | f5a2255010b0bde6df5a9060dbc826ad14ad4c44 (patch) | |
tree | a68310aeb34336e68086d3857348cc6d2eece058 /drivers/hv/ring_buffer.c | |
parent | a7f99d0f2bbfe3b42ce398cdd37a97762e72cb56 (diff) | |
download | linux-f5a2255010b0bde6df5a9060dbc826ad14ad4c44.tar.xz |
hv_netvsc: optimize initialization of RNDIS header
The memset of the whole maximum possible RNDIS header is unnecessary.
For the main part of the header use a structure assignment.
No need to memset the whole per packet info. Instead rely on caller to
set what it wants. Also get rid of cast to void and signed/unsigned
conversion. Now return pointer to per packet data (rather than the
header) which simplifies use by code setting up the packet data.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/hv/ring_buffer.c')
0 files changed, 0 insertions, 0 deletions