[openwrt/openwrt] realtek: dsa: Avoid misleading 'case' indentation

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 24 15:30:00 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/bc71e705aa03ccf97d1044e8c0f9e415413ca12c

commit bc71e705aa03ccf97d1044e8c0f9e415413ca12c
Author: Sven Eckelmann <sven at narfation.org>
AuthorDate: Sun Nov 23 15:07:28 2025 +0100

    realtek: dsa: Avoid misleading 'case' indentation
    
    The case statements should be at the same indentation level as the switch.
    Having different levels makes it harder to spot where the next case starts.
    
    Signed-off-by: Sven Eckelmann <sven at narfation.org>
    Link: https://github.com/openwrt/openwrt/pull/20906
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c
index ad1493a514..a1fc71ff66 100644
--- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c
+++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c
@@ -1004,7 +1004,7 @@ static int rtl931x_pie_data_fill(enum template_field_id field_type, struct pie_r
 			*data_m = pr->dip_m;
 		}
 		break;
-		case TEMPLATE_FIELD_DIP1:
+	case TEMPLATE_FIELD_DIP1:
 		if (pr->is_ipv6) {
 			*data = pr->dip6.s6_addr16[6];
 			*data_m = pr->dip6_m.s6_addr16[6];




More information about the lede-commits mailing list