summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek
diff options
context:
space:
mode:
authorTobias Schramm <tobias@t-sys.eu>2024-02-05 20:31:59 +0100
committerSander Vanheule <sander@svanheule.net>2024-02-05 20:44:46 +0100
commit2f8a881895cddbadf4cc866ce72bce1d6944d744 (patch)
tree2557ace5b922140ff3c99087ac3dd2ee4ae2a334 /target/linux/realtek
parent9b066384f99569489626e147ba38514d038061d9 (diff)
downloadopenwrt-2f8a881895cddbadf4cc866ce72bce1d6944d744.tar.gz
openwrt-2f8a881895cddbadf4cc866ce72bce1d6944d744.tar.bz2
openwrt-2f8a881895cddbadf4cc866ce72bce1d6944d744.zip
realtek: 5.15: rtl93xx: fix switch/case indentation
Small stylistic fixup, one switch case statement was incorrectly indented. Signed-off-by: Tobias Schramm <tobias@t-sys.eu>
Diffstat (limited to 'target/linux/realtek')
-rw-r--r--target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c b/target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c
index 4bbcfd90f5..7e4a4dfc90 100644
--- a/target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c
+++ b/target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c
@@ -2724,22 +2724,21 @@ int rtl9300_sds_check_calibration(int sds_num, phy_interface_t phy_mode)
errors2 = rtl9300_sds_sym_err_get(sds_num, phy_mode);
switch (phy_mode) {
- case PHY_INTERFACE_MODE_XGMII:
-
- if ((errors2 - errors1 > 100) ||
- (errors1 >= 0xffff00) || (errors2 >= 0xffff00)) {
- pr_info("%s XSGMII error rate too high\n", __func__);
- return 1;
- }
- break;
- case PHY_INTERFACE_MODE_10GBASER:
- if (errors2 > 0) {
- pr_info("%s 10GBASER error rate too high\n", __func__);
- return 1;
- }
- break;
- default:
+ case PHY_INTERFACE_MODE_XGMII:
+ if ((errors2 - errors1 > 100) ||
+ (errors1 >= 0xffff00) || (errors2 >= 0xffff00)) {
+ pr_info("%s XSGMII error rate too high\n", __func__);
return 1;
+ }
+ break;
+ case PHY_INTERFACE_MODE_10GBASER:
+ if (errors2 > 0) {
+ pr_info("%s 10GBASER error rate too high\n", __func__);
+ return 1;
+ }
+ break;
+ default:
+ return 1;
}
return 0;