summaryrefslogtreecommitdiffstats
path: root/drivers/hv
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-12-01 11:01:48 -0800
committerDavid S. Miller <davem@davemloft.net>2017-12-03 10:10:02 -0500
commitf5a2255010b0bde6df5a9060dbc826ad14ad4c44 (patch)
treea68310aeb34336e68086d3857348cc6d2eece058 /drivers/hv
parenta7f99d0f2bbfe3b42ce398cdd37a97762e72cb56 (diff)
downloadlinux-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 'drivers/hv')
0 files changed, 0 insertions, 0 deletions