realtek: eth: Do not write directly to dev->addr
authorOlliver Schinagl <oliver@schinagl.nl>
Wed, 24 May 2023 10:58:37 +0000 (12:58 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 12 Jun 2023 20:10:14 +0000 (22:10 +0200)
commite7aae81d03f21dda8a371163fe347ea949381e34
treec71257192ffefc4805ab2726a10d0e8de6a14771
parent61c1b9a0f60d1668204ba2be68dd40f47ccad715
realtek: eth: Do not write directly to dev->addr

One is never to write to dev->addr directly. In 6.1 it will be a const and
with the newly enabled WERROR, we get a failing grade.

Lets fix this ahead of time.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
(cherry picked from commit d881f65da1e6f3bc4237b39cf2373bef51c3828c)
target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c