realtek: Keep return statements on new line
authorSven Eckelmann <[email protected]>
Sun, 23 Nov 2025 16:01:34 +0000 (17:01 +0100)
committerHauke Mehrtens <[email protected]>
Mon, 24 Nov 2025 23:28:50 +0000 (00:28 +0100)
It is not allowed in the Linux kernel to have the condition and
the actual statement(s) on the same line. This is required to
make it easier to identify the body of an if/do/while/for/..

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/dsa/rtl83xx/dsa.c

index fed73dcc4f12baa7a7f70c4d3e5895ef64e5206f..9b81c4ddc348932d691441b40fa624d40fd239ea 100644 (file)
@@ -2141,7 +2141,8 @@ static int rtl83xx_vlan_add(struct dsa_switch *ds, int port,
                __func__, port, vlan->vid, vlan->flags);
 
        /* Let no one mess with our special VLAN 0 */
-       if (!vlan->vid) return 0;
+       if (!vlan->vid)
+               return 0;
 
        if (vlan->vid > 4095) {
                dev_err(priv->dev, "VLAN out of range: %d", vlan->vid);
@@ -2212,7 +2213,8 @@ static int rtl83xx_vlan_del(struct dsa_switch *ds, int port,
                __func__, port, vlan->vid, vlan->flags);
 
        /* Let no one mess with our special VLAN 0 */
-       if (!vlan->vid) return 0;
+       if (!vlan->vid)
+               return 0;
 
        if (vlan->vid > 4095) {
                dev_err(priv->dev, "VLAN out of range: %d", vlan->vid);