aboutsummaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorPeter Körner <git@mazdermind.de>2023-09-19 22:27:11 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2024-01-15 18:09:19 +0100
commitb49a0feb2008fcfcf916632950f23423494d3319 (patch)
tree0d10a0fd6261ba917c8e66bca00ef7b1f777092e /target/linux
parent5bfdd83393eb83cbc78915c16f190b26dabe9e13 (diff)
rtl931x: reformat broken indentation
the given code-format did not correctly express the condition and made the code harder to read then necessary. Signed-off-by: Peter Körner <git@mazdermind.de>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/rtl931x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/rtl931x.c b/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/rtl931x.c
index 0e82d79d4c..07ac25c743 100644
--- a/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/rtl931x.c
+++ b/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/rtl931x.c
@@ -1586,9 +1586,9 @@ static void rtl931x_led_init(struct rtl838x_switch_priv *priv)
sw_w32_mask(0x3 << pos, v << pos, RTL931X_LED_PORT_NUM_CTRL(i));
if (priv->ports[i].phy_is_integrated)
- pm_fiber |= BIT_ULL(i);
- else
- pm_copper |= BIT_ULL(i);
+ pm_fiber |= BIT_ULL(i);
+ else
+ pm_copper |= BIT_ULL(i);
set = priv->ports[i].led_set;
sw_w32_mask(0, set << pos, RTL931X_LED_PORT_COPR_SET_SEL_CTRL(i));