]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: improve lock and error handling in pcs_config 23759/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 14 Jun 2026 12:44:35 +0000 (12:44 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 14 Jun 2026 13:11:45 +0000 (15:11 +0200)
commit390276a846fb1b330585b20d84d1d81705f3fe47
treee59507eaf8fd5dae35a0ed3ab77889415183dc7a
parent77c750faad4a7f231da56189efb9499071e9665c
realtek: pcs: improve lock and error handling in pcs_config

Make use of scoped_guard macro to ease lock and error handling in
pcs_config by having a dedicated scope and no need for gotos.

While being here, replace -ENOTSUPP with preferred -EOPNOTSUPP and drop
{ } brackets for single statement block.

Link: https://github.com/openwrt/openwrt/pull/23759
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c