realtek: pcs: Reduce nesting during calibration
authorSven Eckelmann <[email protected]>
Sun, 23 Nov 2025 14:17:52 +0000 (15:17 +0100)
committerHauke Mehrtens <[email protected]>
Mon, 24 Nov 2025 23:28:50 +0000 (00:28 +0100)
commit69c6658c73113163bd3680db60ed45433f9fe15f
tree0df1a3db36b5cc83f0c24a284f908f9e4e7ae31d
parent80375e5acdaaf7555cd44ee1c8f247f701c6c5cb
realtek: pcs: Reduce nesting during calibration

It is preferred in the kernel to have less nesting of scopes. More common
is to perform pre-condition checks (like error handlers) and then react to
them.

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c