realtek: dsa: handle error returned by PCS
authorJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 27 Oct 2025 18:46:08 +0000 (18:46 +0000)
committerRobert Marko <robimarko@gmail.com>
Sun, 2 Nov 2025 15:32:09 +0000 (16:32 +0100)
commitc447ba0a8387a0e55954387083a3c011749a96f0
tree3ddfb7d5eba5c07484d9207ce71a3279cbfbfedc
parent87c76704d263048d6c146ed0137d79f9ce008074
realtek: dsa: handle error returned by PCS

Check for and handle an error which may be returned by rtpcs_create in
various cases.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20577
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c