staging: rtl8188eu: simplify Hal_EfuseParseMACAddr_8188EU
authorMartin Kaiser <martin@kaiser.cx>
Sun, 25 Jul 2021 15:58:48 +0000 (17:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 13:19:27 +0000 (15:19 +0200)
commit3e04209f341052b4a885d20dd1c81f409bcf82b6
tree7af0e9fbcb86bf2c29fc4181f6867f3e56234a2e
parentbb3462f46462e4d5a66170e3b0c63c1a44c6011d
staging: rtl8188eu: simplify Hal_EfuseParseMACAddr_8188EU

The hwinfo and AutoLoadFail parameters can be obtained from
struct adapter, there's no need to pass them as separate
function parameters.

Use memcpy instead of bytewise copy if we have to fall back to the
hard-coded mac address.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210725155902.32433-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/usb_halinit.c