diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-12-01 11:01:48 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-03 10:10:02 -0500 |
commit | f5a2255010b0bde6df5a9060dbc826ad14ad4c44 (patch) | |
tree | a68310aeb34336e68086d3857348cc6d2eece058 /fs/pnode.c | |
parent | a7f99d0f2bbfe3b42ce398cdd37a97762e72cb56 (diff) | |
download | linux-f5a2255010b0bde6df5a9060dbc826ad14ad4c44.tar.bz2 |
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 'fs/pnode.c')
0 files changed, 0 insertions, 0 deletions