rtl931x: reformat broken indentation
authorPeter Körner <git@mazdermind.de>
Tue, 19 Sep 2023 20:27:11 +0000 (22:27 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 15 Jan 2024 17:09:19 +0000 (18:09 +0100)
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>
target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/rtl931x.c

index 0e82d79d4cbe069090ae8cdd0018eb50dce4f828..07ac25c743f9d2a0a7679afe2d5f3cbb632f69b3 100644 (file)
@@ -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));