aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/cdc_ncm.c
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2018-11-14 11:50:20 +0000
committerDavid S. Miller <davem@davemloft.net>2018-11-16 20:16:19 -0800
commit0c8b26556c6f6abf84bca67ce2c2e010953bba81 (patch)
tree1c55bba33cb2a24586f7312362d427ee7d71b304 /drivers/net/usb/cdc_ncm.c
parentusbnet: smsc95xx: fix rx packet alignment (diff)
downloadlinux-dev-0c8b26556c6f6abf84bca67ce2c2e010953bba81.tar.xz
linux-dev-0c8b26556c6f6abf84bca67ce2c2e010953bba81.zip
usbnet: smsc95xx: simplify tx_fixup code
The smsc95xx_tx_fixup is doing multiple calls to skb_push() to put an 8-byte command header onto the packet. It would be easier to do one skb_push() and then copy the data in once the push is done. We also make the code smaller by using proper unaligned puts for the header. This merges in the CPU to LE32 conversion as well and makes the whole sequence easier to understand hopefully. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/cdc_ncm.c')
0 files changed, 0 insertions, 0 deletions