net: lan78xx: Merge memcpy + lexx_to_cpus to get_unaligned_lexx
authorChuhong Yuan <hslester96@gmail.com>
Fri, 19 Jul 2019 07:36:15 +0000 (15:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jul 2019 19:12:58 +0000 (12:12 -0700)
commitbb448f8a60ea93722edb28418448e0008d148b0c
tree393ed422d2e756aabfef23572d83fc728a8e0424
parent66b5f1c439843bcbab01cc7f3854ae2742f3d1e3
net: lan78xx: Merge memcpy + lexx_to_cpus to get_unaligned_lexx

Merge the combo use of memcpy and lexx_to_cpus.
Use get_unaligned_lexx instead.
This simplifies the code.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Acked-by: Woojung Huh <woojung.huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c